~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/storage_engine.h

  • Committer: brian
  • Date: 2009-11-11 19:42:27 UTC
  • mfrom: (1211 staging)
  • mto: (1211.1.4 staging)
  • mto: This revision was merged to the branch mainline in revision 1212.
  • Revision ID: brian@orisndriz04-20091111194227-mky4am3ym0dlosaa
Update for Cursor renaming.

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
/* Possible flags of a StorageEngine (there can be 32 of them) */
49
49
enum engine_flag_bits {
50
50
  HTON_BIT_ALTER_NOT_SUPPORTED,       // Engine does not support alter
51
 
  HTON_BIT_CAN_RECREATE,              // Delete all is used for truncate
52
51
  HTON_BIT_HIDDEN,                    // Engine does not appear in lists
53
52
  HTON_BIT_FLUSH_AFTER_RENAME,
54
53
  HTON_BIT_NOT_USER_SELECTABLE,
62
61
 
63
62
static const std::bitset<HTON_BIT_SIZE> HTON_NO_FLAGS(0);
64
63
static const std::bitset<HTON_BIT_SIZE> HTON_ALTER_NOT_SUPPORTED(1 << HTON_BIT_ALTER_NOT_SUPPORTED);
65
 
static const std::bitset<HTON_BIT_SIZE> HTON_CAN_RECREATE(1 << HTON_BIT_CAN_RECREATE);
66
64
static const std::bitset<HTON_BIT_SIZE> HTON_HIDDEN(1 << HTON_BIT_HIDDEN);
67
65
static const std::bitset<HTON_BIT_SIZE> HTON_FLUSH_AFTER_RENAME(1 << HTON_BIT_FLUSH_AFTER_RENAME);
68
66
static const std::bitset<HTON_BIT_SIZE> HTON_NOT_USER_SELECTABLE(1 << HTON_BIT_NOT_USER_SELECTABLE);
269
267
  virtual int  recover(XID *, uint32_t) { return 0; }
270
268
  virtual int  commit_by_xid(XID *) { return 0; }
271
269
  virtual int  rollback_by_xid(XID *) { return 0; }
272
 
  virtual Cursor *create(TableShare *, MEM_ROOT *)= 0;
 
270
  virtual Cursor *create(TableShare &, MEM_ROOT *)= 0;
273
271
  /* args: path */
274
272
  virtual void drop_database(char*) { }
275
273
  virtual int start_consistent_snapshot(Session *) { return 0; }
361
359
                         drizzled::message::Table& table_proto,
362
360
                         bool used= true);
363
361
 
364
 
  Cursor *getCursor(TableShare *share, MEM_ROOT *alloc);
 
362
  Cursor *getCursor(TableShare &share, MEM_ROOT *alloc);
365
363
};
366
364
 
367
365
} /* namespace plugin */