2008-11-18 22:20:06 +00:00
|
|
|
#ifndef _HATOKU_HTON
|
|
|
|
#define _HATOKU_HTON
|
|
|
|
|
|
|
|
#include "db.h"
|
|
|
|
|
|
|
|
|
|
|
|
extern handlerton *tokudb_hton;
|
|
|
|
|
|
|
|
extern DB_ENV *db_env;
|
2009-09-10 20:52:19 +00:00
|
|
|
extern DB *metadata_db;
|
2008-11-18 22:20:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
// thread variables
|
2010-02-12 19:18:50 +00:00
|
|
|
ulonglong get_write_lock_wait_time (THD* thd);
|
2010-02-23 16:42:08 +00:00
|
|
|
ulonglong get_read_lock_wait_time (THD* thd);
|
2010-03-05 20:21:08 +00:00
|
|
|
uint get_pk_insert_mode(THD* thd);
|
2010-04-30 14:18:43 +00:00
|
|
|
bool get_load_save_space(THD* thd);
|
2008-11-18 22:20:06 +00:00
|
|
|
|
|
|
|
extern HASH tokudb_open_tables;
|
|
|
|
extern pthread_mutex_t tokudb_mutex;
|
2009-09-10 20:52:19 +00:00
|
|
|
extern pthread_mutex_t tokudb_meta_mutex;
|
2009-09-11 18:34:16 +00:00
|
|
|
extern my_bool tokudb_prelock_empty;
|
2009-09-28 19:53:20 +00:00
|
|
|
extern u_int32_t tokudb_write_status_frequency;
|
|
|
|
extern u_int32_t tokudb_read_status_frequency;
|
2008-11-18 22:20:06 +00:00
|
|
|
#endif //#ifdef _HATOKU_HTON
|