[t:2504] Add upgrade info to engine status.

git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@20497 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
Barry Perlman 2010-05-20 23:06:29 +00:00 committed by Yoni Fogel
parent cbb2e27d52
commit 7758ca1480

View file

@ -1023,6 +1023,15 @@ static bool tokudb_show_engine_status(THD * thd, stat_print_fn * stat_print) {
STATPRINT("log suppress (success) ", buf);
snprintf(buf, bufsiz, "%" PRIu64, engstat.logsuppressfail);
STATPRINT("log suppress fail", buf);
snprintf(buf, bufsiz, "%" PRIu64, engstat.upgrade_env_status);
STATPRINT("upgrade env status", buf);
snprintf(buf, bufsiz, "%" PRIu64, engstat.upgrade_header);
STATPRINT("upgrade header", buf);
snprintf(buf, bufsiz, "%" PRIu64, engstat.upgrade_nonleaf);
STATPRINT("upgrade nonleaf", buf);
snprintf(buf, bufsiz, "%" PRIu64, engstat.upgrade_leaf);
STATPRINT("upgrade leaf", buf);
}
if (error) { my_errno = error; }
TOKUDB_DBUG_RETURN(error);