~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/storage_engine.h

  • Committer: Brian Aker
  • Date: 2009-10-12 22:46:41 UTC
  • mfrom: (1130.2.27 plugin-base-class)
  • Revision ID: brian@gaz-20091012224641-gjo56i190y8c98xg
Merge Monty, default class.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
#include <drizzled/plugin.h>
26
26
#include <drizzled/handler_structs.h>
27
27
#include <drizzled/message/table.pb.h>
 
28
#include "drizzled/plugin/plugin.h"
28
29
#include <drizzled/registry.h>
29
30
 
30
31
#include <bitset>
88
89
 
89
90
  savepoint_*, prepare, recover, and *_by_xid pointers can be 0.
90
91
*/
91
 
class StorageEngine
 
92
class StorageEngine : public Plugin
92
93
{
93
94
  /*
94
95
    Name used for storage engine.
95
96
  */
96
 
  const std::string name;
97
97
  const bool two_phase_commit;
98
98
  bool enabled;
99
99
 
109
109
  */
110
110
  size_t savepoint_offset;
111
111
  size_t orig_savepoint_offset;
112
 
  std::vector<std::string> aliases;
113
112
 
114
113
  void setTransactionReadWrite(Session* session);
115
114
 
156
155
  inline uint32_t getSlot (void) { return slot; }
157
156
  inline void setSlot (uint32_t value) { slot= value; }
158
157
 
159
 
  const std::vector<std::string>& getAliases()
160
 
  {
161
 
    return aliases;
162
 
  }
163
 
 
164
 
  void addAlias(std::string alias)
165
 
  {
166
 
    aliases.push_back(alias);
167
 
  }
168
 
 
169
158
  bool has_2pc()
170
159
  {
171
160
    return two_phase_commit;
190
179
  void enable() { enabled= true; }
191
180
  void disable() { enabled= false; }
192
181
 
193
 
  const std::string &getName() const { return name; }
194
 
 
195
182
  /*
196
183
    StorageEngine methods:
197
184