diff options
author | Igor Babaev <igor@askmonty.org> | 2010-11-02 10:12:21 -0700 |
---|---|---|
committer | Igor Babaev <igor@askmonty.org> | 2010-11-02 10:12:21 -0700 |
commit | 66191ef0705733eedce1b2d34853327badf8ddef (patch) | |
tree | 30de5db187a25b8ea725be724724bf0c7688fe18 /storage | |
parent | 432c9b20e90064e1b4a03a9c98ad12ee4fc0814a (diff) | |
parent | c186b79b199224185d622ffeb152abc6d389ba2c (diff) | |
download | mariadb-git-66191ef0705733eedce1b2d34853327badf8ddef.tar.gz |
Merge
Diffstat (limited to 'storage')
-rw-r--r-- | storage/myisam/mi_test2.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/storage/myisam/mi_test2.c b/storage/myisam/mi_test2.c index 527c5e03a27..c463f0e3daa 100644 --- a/storage/myisam/mi_test2.c +++ b/storage/myisam/mi_test2.c @@ -812,6 +812,8 @@ end: mi_panic(HA_PANIC_CLOSE); /* Should close log */ if (!silent) { + KEY_CACHE_STATISTICS stats; + printf("\nFollowing test have been made:\n"); printf("Write records: %d\nUpdate records: %d\nSame-key-read: %d\nDelete records: %d\n", write_count,update,dupp_keys,opt_delete); if (rec_pointer_size) @@ -834,6 +836,7 @@ end: puts("Locking used"); if (use_blob) puts("blobs used"); + get_key_cache_statistics(dflt_key_cache, 0, &stats); printf("key cache status: \n\ blocks used:%10lu\n\ not flushed:%10lu\n\ @@ -841,12 +844,12 @@ w_requests: %10lu\n\ writes: %10lu\n\ r_requests: %10lu\n\ reads: %10lu\n", - dflt_key_cache->blocks_used, - dflt_key_cache->global_blocks_changed, - (ulong) dflt_key_cache->global_cache_w_requests, - (ulong) dflt_key_cache->global_cache_write, - (ulong) dflt_key_cache->global_cache_r_requests, - (ulong) dflt_key_cache->global_cache_read); + (ulong) stats.blocks_used, + (ulong) stats.blocks_changed, + (ulong) stats.write_requests, + (ulong) stats.writes, + (ulong) stats.read_requests, + (ulong) stats.reads); } end_key_cache(dflt_key_cache,1); if (blob_buffer) |