Commit 0d66e22e 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 00b69d02
...@@ -1113,8 +1113,8 @@ static bool tokudb_show_engine_status(THD * thd, stat_print_fn * stat_print) { ...@@ -1113,8 +1113,8 @@ static bool tokudb_show_engine_status(THD * thd, stat_print_fn * stat_print) {
ENGINE_STATUS engstat; ENGINE_STATUS engstat;
#define showval(v) \ #define showval(v) \
snprintf(buf, bufsiz, "%" PRIu64, engstat.%%v); \ snprintf(buf, bufsiz, "%" PRIu64, engstat.v); \
STATPRINT(%%v, buf); STATPRINT(#v, buf);
error = db_env->get_engine_status(db_env, &engstat, buf, bufsiz); error = db_env->get_engine_status(db_env, &engstat, buf, bufsiz);
if (strlen(buf)) { if (strlen(buf)) {
...@@ -1247,7 +1247,7 @@ static bool tokudb_show_engine_status(THD * thd, stat_print_fn * stat_print) { ...@@ -1247,7 +1247,7 @@ static bool tokudb_show_engine_status(THD * thd, stat_print_fn * stat_print) {
showval(cleaner_total_nodes); showval(cleaner_total_nodes);
showval(cleaner_h1_nodes); showval(cleaner_h1_nodes);
showval(cleaner_hgt1_nodes showval(cleaner_hgt1_nodes);
showval(cleaner_empty_nodes); showval(cleaner_empty_nodes);
showval(cleaner_nodes_dirtied); showval(cleaner_nodes_dirtied);
showval(cleaner_max_buffer_size); 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