397
397
handler *get_new_handler(TableShare *share, MEM_ROOT *alloc,
398
398
drizzled::plugin::StorageEngine *db_type);
402
/** @TODO remove each of the following convenience naming methods */
404
static inline void ha_close_connection(Session *session)
406
drizzled::plugin::StorageEngine::closeConnection(session);
409
static inline void ha_drop_database(char* path)
411
drizzled::plugin::StorageEngine::dropDatabase(path);
414
static inline int ha_commit_or_rollback_by_xid(XID *xid, bool commit)
416
return drizzled::plugin::StorageEngine::commitOrRollbackByXID(xid, commit);
419
/* report to InnoDB that control passes to the client */
420
static inline int ha_release_temporary_latches(Session *session)
422
return drizzled::plugin::StorageEngine::releaseTemporaryLatches(session);
425
static inline bool ha_flush_logs(drizzled::plugin::StorageEngine *engine)
427
return drizzled::plugin::StorageEngine::flushLogs(engine);
430
static inline int ha_recover(HASH *commit_list)
432
return drizzled::plugin::StorageEngine::recover(commit_list);
435
static inline int ha_start_consistent_snapshot(Session *session)
437
return drizzled::plugin::StorageEngine::startConsistentSnapshot(session);
440
static inline int ha_delete_table(Session *session, const char *path,
441
const char *db, const char *alias, bool generate_warning)
443
return drizzled::plugin::StorageEngine::deleteTable(session, path, db,
444
alias, generate_warning);
448
400
#endif /* DRIZZLED_PLUGIN_STORAGE_ENGINE_H */