mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 05:22:25 +01:00
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
This commit is contained in:
parent
adcaf35e34
commit
32625bc0be
1 changed files with 13 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue