Commit 32625bc0 authored by Barry Perlman's avatar Barry Perlman Committed by Yoni Fogel

Addresses #1792 refs[t:1792] Added ydb-layer operation counters to engine status

git-svn-id: file:///svn/mysql/tokudb-engine/src@14811 c7de825b-a66e-492c-adef-691d508d4ae1
parent adcaf35e
Branches unavailable
Tags unavailable
No related merge requests found
......@@ -730,7 +730,7 @@ static bool tokudb_show_logs(THD * thd, stat_print_fn * stat_print) {
static bool tokudb_show_engine_status(THD * thd, stat_print_fn * stat_print) {
TOKUDB_DBUG_ENTER("tokudb_show_engine_status");
int error;
char buf[4096] = {'\0'};
char buf[1024] = {'\0'};
ENGINE_STATUS engstat;
......@@ -791,7 +791,19 @@ static bool tokudb_show_engine_status(THD * thd, stat_print_fn * stat_print) {
sprintf(buf, "%" PRIu32, engstat.range_locks_curr);
STATPRINT("range locks in use", buf);
sprintf(buf, "%" PRIu64, engstat.inserts);
STATPRINT("dictionary inserts", buf);
sprintf(buf, "%" PRIu64, engstat.deletes);
STATPRINT("dictionary deletes", buf);
sprintf(buf, "%" PRIu64, engstat.point_queries);
STATPRINT("dictionary point queries", buf);
sprintf(buf, "%" PRIu64, engstat.sequential_queries);
STATPRINT("dictionary sequential queries", buf);
sprintf(buf, "%" PRIu64, engstat.commits);
STATPRINT("txn commits", buf);
sprintf(buf, "%" PRIu64, engstat.aborts);
STATPRINT("txn aborts", buf);
}
if (error) { my_errno = error; }
TOKUDB_DBUG_RETURN(error);
......
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