Commit 8f36c931 authored by John Esmet's avatar John Esmet Committed by Yoni Fogel

[t:3988] bug fixes for the showval macro


git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@36875 c7de825b-a66e-492c-adef-691d508d4ae1
parent cd384de1
......@@ -1113,8 +1113,8 @@ static bool tokudb_show_engine_status(THD * thd, stat_print_fn * stat_print) {
ENGINE_STATUS engstat;
#define showval(v) \
snprintf(buf, bufsiz, "%" PRIu64, engstat.%%v); \
STATPRINT(%%v, buf);
snprintf(buf, bufsiz, "%" PRIu64, engstat.v); \
STATPRINT(#v, buf);
error = db_env->get_engine_status(db_env, &engstat, buf, bufsiz);
if (strlen(buf)) {
......@@ -1247,7 +1247,7 @@ static bool tokudb_show_engine_status(THD * thd, stat_print_fn * stat_print) {
showval(cleaner_total_nodes);
showval(cleaner_h1_nodes);
showval(cleaner_hgt1_nodes
showval(cleaner_hgt1_nodes);
showval(cleaner_empty_nodes);
showval(cleaner_nodes_dirtied);
showval(cleaner_max_buffer_size);
......
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