From 612ceab448794a7c4bb532186af04fcf52665fb1 Mon Sep 17 00:00:00 2001 From: Barry Perlman Date: Tue, 29 Sep 2009 21:26:36 +0000 Subject: [PATCH] Addresses #1792 refs[t:1792] Added timestamps to engine status git-svn-id: file:///svn/mysql/tokudb-engine/src@14818 c7de825b-a66e-492c-adef-691d508d4ae1 --- storage/tokudb/hatoku_hton.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/storage/tokudb/hatoku_hton.cc b/storage/tokudb/hatoku_hton.cc index 92d5b7c7a35..69fae744830 100644 --- a/storage/tokudb/hatoku_hton.cc +++ b/storage/tokudb/hatoku_hton.cc @@ -750,6 +750,7 @@ static bool tokudb_show_engine_status(THD * thd, stat_print_fn * stat_print) { error = db_env->get_engine_status(db_env, &engstat); if (error == 0) { + STATPRINT("time now", engstat.now); const char * lockstat = (engstat.ydb_lock_ctr & 0x01) ? "Locked" : "Unlocked"; u_int32_t lockctr = engstat.ydb_lock_ctr >> 1; // lsb indicates if locked sprintf(buf, "%" PRIu32, lockctr); @@ -789,6 +790,9 @@ static bool tokudb_show_engine_status(THD * thd, stat_print_fn * stat_print) { STATPRINT("checkpoint period", buf); sprintf(buf, "%" PRIu32, engstat.checkpoint_footprint); STATPRINT("checkpoint status code (0 = idle)", buf); + STATPRINT("last complete checkpoint began ", engstat.checkpoint_time_begin_complete); + STATPRINT("last complete checkpoint ended ", engstat.checkpoint_time_end); + STATPRINT("last checkpoint began ", engstat.checkpoint_time_begin); sprintf(buf, "%" PRIu32, engstat.range_locks_max); STATPRINT("max range locks", buf);