Commit 3cff8476 authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

replace tables in handlerton files

git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@46186 c7de825b-a66e-492c-adef-691d508d4ae1
parent b5fceb73
...@@ -41,14 +41,14 @@ static uchar *tokudb_get_key(TOKUDB_SHARE * share, size_t * length, my_bool not_ ...@@ -41,14 +41,14 @@ static uchar *tokudb_get_key(TOKUDB_SHARE * share, size_t * length, my_bool not_
} }
static handler *tokudb_create_handler(handlerton * hton, TABLE_SHARE * table, MEM_ROOT * mem_root); static handler *tokudb_create_handler(handlerton * hton, TABLE_SHARE * table, MEM_ROOT * mem_root);
static MYSQL_THDVAR_BOOL(commit_sync, static MYSQL_THDVAR_BOOL(commit_sync,
PLUGIN_VAR_THDLOCAL, PLUGIN_VAR_THDLOCAL,
"sync on txn commit", "sync on txn commit",
/* check */ NULL, /* check */ NULL,
/* update */ NULL, /* update */ NULL,
/* default*/ true /* default*/ true
); );
static MYSQL_THDVAR_UINT(pk_insert_mode, static MYSQL_THDVAR_UINT(pk_insert_mode,
0, 0,
"set the primary key insert mode", "set the primary key insert mode",
...@@ -58,56 +58,56 @@ static MYSQL_THDVAR_UINT(pk_insert_mode, ...@@ -58,56 +58,56 @@ static MYSQL_THDVAR_UINT(pk_insert_mode,
0, // min? 0, // min?
2, // max 2, // max
1 // blocksize 1 // blocksize
); );
static MYSQL_THDVAR_BOOL(load_save_space, static MYSQL_THDVAR_BOOL(load_save_space,
0, 0,
"if on, intial loads are slower but take less space", "if on, intial loads are slower but take less space",
NULL, NULL,
NULL, NULL,
false false
); );
static MYSQL_THDVAR_BOOL(disable_slow_alter, static MYSQL_THDVAR_BOOL(disable_slow_alter,
0, 0,
"if on, alter tables that require copy are disabled", "if on, alter tables that require copy are disabled",
NULL, NULL,
NULL, NULL,
false false
); );
static MYSQL_THDVAR_BOOL(disable_hot_alter, static MYSQL_THDVAR_BOOL(disable_hot_alter,
0, 0,
"if on, hot alter table is disabled", "if on, hot alter table is disabled",
NULL, NULL,
NULL, NULL,
false false
); );
static MYSQL_THDVAR_BOOL(create_index_online, static MYSQL_THDVAR_BOOL(create_index_online,
0, 0,
"if on, create index done online", "if on, create index done online",
NULL, NULL,
NULL, NULL,
true true
); );
static MYSQL_THDVAR_BOOL(disable_prefetching, static MYSQL_THDVAR_BOOL(disable_prefetching,
0, 0,
"if on, prefetching disabled", "if on, prefetching disabled",
NULL, NULL,
NULL, NULL,
false false
); );
static MYSQL_THDVAR_BOOL(prelock_empty, static MYSQL_THDVAR_BOOL(prelock_empty,
0, 0,
"Tokudb Prelock Empty Table", "Tokudb Prelock Empty Table",
NULL, NULL,
NULL, NULL,
true true
); );
static MYSQL_THDVAR_BOOL(log_client_errors, static MYSQL_THDVAR_BOOL(log_client_errors,
0, 0,
"Tokudb Log Client Errors", "Tokudb Log Client Errors",
NULL, NULL,
NULL, NULL,
false false
); );
static MYSQL_THDVAR_UINT(block_size, static MYSQL_THDVAR_UINT(block_size,
0, 0,
"fractal tree block size", "fractal tree block size",
...@@ -117,7 +117,7 @@ static MYSQL_THDVAR_UINT(block_size, ...@@ -117,7 +117,7 @@ static MYSQL_THDVAR_UINT(block_size,
4096, // min 4096, // min
~0L, // max ~0L, // max
1 // blocksize??? 1 // blocksize???
); );
static MYSQL_THDVAR_UINT(read_block_size, static MYSQL_THDVAR_UINT(read_block_size,
0, 0,
"fractal tree read block size", "fractal tree read block size",
...@@ -127,7 +127,7 @@ static MYSQL_THDVAR_UINT(read_block_size, ...@@ -127,7 +127,7 @@ static MYSQL_THDVAR_UINT(read_block_size,
4096, // min 4096, // min
~0L, // max ~0L, // max
1 // blocksize??? 1 // blocksize???
); );
static MYSQL_THDVAR_UINT(read_buf_size, static MYSQL_THDVAR_UINT(read_buf_size,
0, 0,
"fractal tree read block size", //TODO: Is this a typo? "fractal tree read block size", //TODO: Is this a typo?
...@@ -137,7 +137,7 @@ static MYSQL_THDVAR_UINT(read_buf_size, ...@@ -137,7 +137,7 @@ static MYSQL_THDVAR_UINT(read_buf_size,
0, // min 0, // min
1*1024*1024, // max 1*1024*1024, // max
1 // blocksize??? 1 // blocksize???
); );
static void tokudb_checkpoint_lock(THD * thd); static void tokudb_checkpoint_lock(THD * thd);
static void tokudb_checkpoint_unlock(THD * thd); static void tokudb_checkpoint_unlock(THD * thd);
...@@ -165,7 +165,7 @@ static MYSQL_THDVAR_BOOL(checkpoint_lock, ...@@ -165,7 +165,7 @@ static MYSQL_THDVAR_BOOL(checkpoint_lock,
NULL, NULL,
tokudb_checkpoint_lock_update, tokudb_checkpoint_lock_update,
false false
); );
static const char *tokudb_row_format_names[] = { static const char *tokudb_row_format_names[] = {
"tokudb_uncompressed", "tokudb_uncompressed",
...@@ -252,9 +252,6 @@ void toku_hton_assert_fail(const char* expr_as_string, const char * fun, const c ...@@ -252,9 +252,6 @@ void toku_hton_assert_fail(const char* expr_as_string, const char * fun, const c
abort(); abort();
} }
//my_bool tokudb_shared_data = false; //my_bool tokudb_shared_data = false;
static uint32_t tokudb_init_flags = static uint32_t tokudb_init_flags =
DB_CREATE | DB_THREAD | DB_PRIVATE | DB_CREATE | DB_THREAD | DB_PRIVATE |
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment