~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/storage_engine.h

Merged up with trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
397
397
handler *get_new_handler(TableShare *share, MEM_ROOT *alloc,
398
398
                         drizzled::plugin::StorageEngine *db_type);
399
399
 
400
 
 
401
 
 
402
 
/** @TODO remove each of the following convenience naming methods */
403
 
 
404
 
static inline void ha_close_connection(Session *session)
405
 
{
406
 
  drizzled::plugin::StorageEngine::closeConnection(session);
407
 
}
408
 
 
409
 
static inline void ha_drop_database(char* path)
410
 
{
411
 
  drizzled::plugin::StorageEngine::dropDatabase(path);
412
 
}
413
 
 
414
 
static inline int ha_commit_or_rollback_by_xid(XID *xid, bool commit)
415
 
{
416
 
  return drizzled::plugin::StorageEngine::commitOrRollbackByXID(xid, commit);
417
 
}
418
 
 
419
 
/* report to InnoDB that control passes to the client */
420
 
static inline int ha_release_temporary_latches(Session *session)
421
 
{
422
 
  return drizzled::plugin::StorageEngine::releaseTemporaryLatches(session);
423
 
}
424
 
 
425
 
static inline bool ha_flush_logs(drizzled::plugin::StorageEngine *engine)
426
 
{
427
 
  return drizzled::plugin::StorageEngine::flushLogs(engine);
428
 
}
429
 
 
430
 
static inline int ha_recover(HASH *commit_list)
431
 
{
432
 
  return drizzled::plugin::StorageEngine::recover(commit_list);
433
 
}
434
 
 
435
 
static inline int ha_start_consistent_snapshot(Session *session)
436
 
{
437
 
  return drizzled::plugin::StorageEngine::startConsistentSnapshot(session);
438
 
}
439
 
 
440
 
static inline int ha_delete_table(Session *session, const char *path,
441
 
                    const char *db, const char *alias, bool generate_warning)
442
 
{
443
 
  return drizzled::plugin::StorageEngine::deleteTable(session, path, db,
444
 
                                            alias, generate_warning);
445
 
}
446
 
 
447
 
 
448
400
#endif /* DRIZZLED_PLUGIN_STORAGE_ENGINE_H */