Commit b2db2138 authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

#2775 refs[t:2775] conditionally include tokutek enhancements in the handlerton

git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@21774 c7de825b-a66e-492c-adef-691d508d4ae1
parent ee854d93
This diff is collapsed.
......@@ -2,6 +2,10 @@
#pragma interface /* gcc class implementation */
#endif
#define TOKU_INCLUDE_CHECKPOINT_LOCK 1
#define TOKU_INCLUDE_SHOW_DATA_AMOUNT 1
#if !defined(HA_CLUSTERING)
#define HA_CLUSTERING 0
#define HA_CLUSTERED_INDEX 0
......
......@@ -1147,7 +1147,7 @@ int tokudb_checkpoint_unlock(THD * thd, stat_print_fn * stat_print) {
bool tokudb_show_status(handlerton * hton, THD * thd, stat_print_fn * stat_print, enum ha_stat_type stat_type) {
switch (stat_type) {
#if defined(HA_ENGINE_DATA_AMOUNT)
#if TOKU_INCLUDE_SHOW_DATA_AMOUNT
case HA_ENGINE_DATA_AMOUNT:
return tokudb_show_data_size(thd, stat_print, false);
break;
......@@ -1158,7 +1158,7 @@ bool tokudb_show_status(handlerton * hton, THD * thd, stat_print_fn * stat_print
case HA_ENGINE_STATUS:
return tokudb_show_engine_status(thd, stat_print);
break;
#if defined(HA_ENGINE_CHECKPOINT_LOCK)
#if TOKU_INCLUDE_CHECKPOINT_LOCK
case HA_ENGINE_CHECKPOINT_LOCK:
return tokudb_checkpoint_lock(thd, stat_print);
break;
......
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