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-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);
|
2011-03-04 19:54:23 +00:00
|
|
|
bool get_disable_slow_alter(THD* thd);
|
2010-11-17 23:09:06 +00:00
|
|
|
bool get_create_index_online(THD* thd);
|
2011-12-11 01:56:53 +00:00
|
|
|
bool get_disable_prefetching(THD* thd);
|
2010-05-15 01:28:19 +00:00
|
|
|
bool get_prelock_empty(THD* thd);
|
2010-12-17 18:16:54 +00:00
|
|
|
uint get_tokudb_block_size(THD* thd);
|
2011-07-12 21:56:07 +00:00
|
|
|
uint get_tokudb_read_block_size(THD* thd);
|
2011-08-16 12:50:38 +00:00
|
|
|
uint get_tokudb_read_buf_size(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-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
|