~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/storage_engine.h

  • Committer: Brian Aker
  • Date: 2009-04-29 01:45:36 UTC
  • mfrom: (1000.1.6 merge)
  • Revision ID: brian@gaz-20090429014536-pwu5m8ug6n8fvh68
Merge refactoring (mainly around TABLE_SHARE... one step forward...)

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
class XID;
34
34
class handler;
35
35
 
36
 
class TABLE_SHARE;
 
36
class TableShare;
37
37
typedef struct st_mysql_lex_string LEX_STRING;
38
38
typedef bool (stat_print_fn)(Session *session, const char *type, uint32_t type_len,
39
39
                             const char *file, uint32_t file_len,
224
224
  virtual int  recover(XID *, uint32_t) { return 0; }
225
225
  virtual int  commit_by_xid(XID *) { return 0; }
226
226
  virtual int  rollback_by_xid(XID *) { return 0; }
227
 
  virtual handler *create(TABLE_SHARE *, MEM_ROOT *)= 0;
 
227
  virtual handler *create(TableShare *, MEM_ROOT *)= 0;
228
228
  /* args: path */
229
229
  virtual void drop_database(char*) { }
230
230
  virtual int start_consistent_snapshot(Session *) { return 0; }
246
246
/* lookups */
247
247
StorageEngine *ha_default_storage_engine(Session *session);
248
248
StorageEngine *ha_resolve_by_name(Session *session, const LEX_STRING *name);
249
 
handler *get_new_handler(TABLE_SHARE *share, MEM_ROOT *alloc,
 
249
handler *get_new_handler(TableShare *share, MEM_ROOT *alloc,
250
250
                         StorageEngine *db_type);
251
251
const std::string ha_resolve_storage_engine_name(const StorageEngine *db_type);
252
252