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