~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/storage_engine.cc

  • Committer: Brian Aker
  • Date: 2010-02-04 15:58:21 UTC
  • mfrom: (1280.1.9 build)
  • Revision ID: brian@gaz-20100204155821-bi4txluiivy043sb
Rollup of Brian, Jay

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
 
75
75
plugin::StorageEngine::StorageEngine(const string name_arg,
76
76
                                     const bitset<HTON_BIT_SIZE> &flags_arg,
77
 
                                     size_t savepoint_offset_arg,
78
77
                                     bool support_2pc)
79
78
    : Plugin(name_arg, "StorageEngine"),
80
79
      two_phase_commit(support_2pc),
81
80
      enabled(true),
82
81
      flags(flags_arg),
83
 
      savepoint_offset(savepoint_alloc_size),
84
 
      orig_savepoint_offset(savepoint_offset_arg),
85
82
      slot(0)
86
83
{
87
84
  if (enabled)
88
85
  {
89
 
    savepoint_alloc_size+= orig_savepoint_offset;
90
86
    slot= total_ha++;
91
87
    if (two_phase_commit)
92
88
        total_ha_2pc++;
97
93
 
98
94
plugin::StorageEngine::~StorageEngine()
99
95
{
100
 
  savepoint_alloc_size-= orig_savepoint_offset;
101
96
  pthread_mutex_destroy(&proto_cache_mutex);
102
97
}
103
98