[t:3988] bug fixes for the showval macro

git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@36875 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
John Esmet 2013-04-17 00:02:07 -04:00 committed by Yoni Fogel
parent 00b69d021e
commit 0d66e22e2c

View file

@ -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);