From f5153a99c956b7a660fb1d83bd66d338774d6638 Mon Sep 17 00:00:00 2001 From: Barry Perlman Date: Wed, 17 Apr 2013 00:02:01 -0400 Subject: [PATCH] [t:2725] Add missing engine status info to handlerton's display of engine status. git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@21055 c7de825b-a66e-492c-adef-691d508d4ae1 --- storage/tokudb/hatoku_hton.cc | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/storage/tokudb/hatoku_hton.cc b/storage/tokudb/hatoku_hton.cc index 1bf1f7e1381..0c2976f1bca 100644 --- a/storage/tokudb/hatoku_hton.cc +++ b/storage/tokudb/hatoku_hton.cc @@ -955,8 +955,10 @@ static bool tokudb_show_engine_status(THD * thd, stat_print_fn * stat_print) { STATPRINT("cachetable wait reading", buf); snprintf(buf, bufsiz, "%" PRIu64, engstat.cachetable_wait_writing); STATPRINT("cachetable wait writing", buf); + snprintf(buf, bufsiz, "%" PRIu64, engstat.cachetable_wait_checkpoint); + STATPRINT("cachetable wait checkpoint", buf); snprintf(buf, bufsiz, "%" PRIu64, engstat.puts); - STATPRINT("cachetable puts (new node)", buf); + STATPRINT("cachetable puts (new nodes)", buf); snprintf(buf, bufsiz, "%" PRIu64, engstat.prefetches); STATPRINT("cachetable prefetches", buf); snprintf(buf, bufsiz, "%" PRIu64, engstat.maybe_get_and_pins); @@ -971,6 +973,12 @@ static bool tokudb_show_engine_status(THD * thd, stat_print_fn * stat_print) { STATPRINT("cachetable size_writing", buf); snprintf(buf, bufsiz, "%" PRIu64, engstat.get_and_pin_footprint); STATPRINT("cachetable get_and_pin_footprint", buf); + snprintf(buf, bufsiz, "%" PRIu64, engstat.local_checkpoint); + STATPRINT("local checkpoint", buf); + snprintf(buf, bufsiz, "%" PRIu64, engstat.local_checkpoint_files); + STATPRINT("local checkpoint files", buf); + snprintf(buf, bufsiz, "%" PRIu64, engstat.local_checkpoint_during_checkpoint); + STATPRINT("local checkpoint during checkpoint", buf); snprintf(buf, bufsiz, "%" PRIu32, engstat.range_locks_max); STATPRINT("max range locks", buf); @@ -982,6 +990,18 @@ static bool tokudb_show_engine_status(THD * thd, stat_print_fn * stat_print) { STATPRINT("range lock escalation successes", buf); snprintf(buf, bufsiz, "%" PRIu32, engstat.range_lock_escalation_failures); STATPRINT("range lock escalation failures", buf); + snprintf(buf, bufsiz, "%" PRIu32, engstat.range_read_locks); + STATPRINT("range read locks acquired", buf); + snprintf(buf, bufsiz, "%" PRIu32, engstat.range_read_locks_fail); + STATPRINT("range read locks unable to be acquired", buf); + snprintf(buf, bufsiz, "%" PRIu32, engstat.range_out_of_read_locks); + STATPRINT("range read locks exhausted", buf); + snprintf(buf, bufsiz, "%" PRIu32, engstat.range_write_locks); + STATPRINT("range write locks acquired", buf); + snprintf(buf, bufsiz, "%" PRIu32, engstat.range_write_locks_fail); + STATPRINT("range write locks unable to be acquired", buf); + snprintf(buf, bufsiz, "%" PRIu32, engstat.range_out_of_write_locks); + STATPRINT("range write locks exhausted", buf); snprintf(buf, bufsiz, "%" PRIu64, engstat.fsync_count); STATPRINT("fsync count", buf);