~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/storage_engine.h

Fixed bashism.

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
51
52
  HTON_BIT_HIDDEN,                    // Engine does not appear in lists
52
53
  HTON_BIT_FLUSH_AFTER_RENAME,
53
54
  HTON_BIT_NOT_USER_SELECTABLE,
61
62
 
62
63
static const std::bitset<HTON_BIT_SIZE> HTON_NO_FLAGS(0);
63
64
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);
64
66
static const std::bitset<HTON_BIT_SIZE> HTON_HIDDEN(1 << HTON_BIT_HIDDEN);
65
67
static const std::bitset<HTON_BIT_SIZE> HTON_FLUSH_AFTER_RENAME(1 << HTON_BIT_FLUSH_AFTER_RENAME);
66
68
static const std::bitset<HTON_BIT_SIZE> HTON_NOT_USER_SELECTABLE(1 << HTON_BIT_NOT_USER_SELECTABLE);
79
81
 
80
82
const std::string UNKNOWN_STRING("UNKNOWN");
81
83
const std::string DEFAULT_DEFINITION_FILE_EXT(".dfe");
 
84
const unsigned int MAX_STORAGE_ENGINE_FILE_EXT= 4;
82
85
    
83
86
 
84
87
/*
119
122
  std::string table_definition_ext;
120
123
 
121
124
public:
122
 
  const std::string& getTableDefinitionFileExtension()
 
125
  const std::string& getTableDefinitionExt()
123
126
  {
124
127
    return table_definition_ext;
125
128
  }
266
269
  virtual int  recover(XID *, uint32_t) { return 0; }
267
270
  virtual int  commit_by_xid(XID *) { return 0; }
268
271
  virtual int  rollback_by_xid(XID *) { return 0; }
269
 
  virtual Cursor *create(TableShare &, MEM_ROOT *)= 0;
 
272
  virtual Cursor *create(TableShare *, MEM_ROOT *)= 0;
270
273
  /* args: path */
271
274
  virtual void drop_database(char*) { }
272
275
  virtual int start_consistent_snapshot(Session *) { return 0; }
358
361
                         drizzled::message::Table& table_proto,
359
362
                         bool used= true);
360
363
 
361
 
  static void removeLostTemporaryTables(Session &session, const char *directory);
362
 
 
363
 
  Cursor *getCursor(TableShare &share, MEM_ROOT *alloc);
 
364
  Cursor *getCursor(TableShare *share, MEM_ROOT *alloc);
364
365
};
365
366
 
366
367
} /* namespace plugin */