diff options
author | unknown <ingo@mysql.com> | 2005-09-14 13:37:16 +0200 |
---|---|---|
committer | unknown <ingo@mysql.com> | 2005-09-14 13:37:16 +0200 |
commit | a1503923177ff2bebe64b3d4d3b40264ff6c4fd0 (patch) | |
tree | ae2fd0258faa8a659833fd8a79ec66c3c11e5e83 /sql/sql_test.cc | |
parent | a3f87ca4c73e225e828487f2f22bdb24210aa83c (diff) | |
parent | 5fe65297d21ed815d221699cad46e44958f74a06 (diff) | |
download | mariadb-git-a1503923177ff2bebe64b3d4d3b40264ff6c4fd0.tar.gz |
Merge mysql.com:/home/mydev/mysql-4.1-4100
into mysql.com:/home/mydev/mysql-5.0-5000
include/my_sys.h:
Auto merged
mysys/mf_keycache.c:
Auto merged
sql/sql_test.cc:
Auto merged
sql/mysqld.cc:
Manual merge.
sql/sql_show.cc:
Manual merge.
sql/structs.h:
Manual merge.
Diffstat (limited to 'sql/sql_test.cc')
-rw-r--r-- | sql/sql_test.cc | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/sql/sql_test.cc b/sql/sql_test.cc index ddd0f3fe162..1bd298dda04 100644 --- a/sql/sql_test.cc +++ b/sql/sql_test.cc @@ -408,6 +408,11 @@ end: static int print_key_cache_status(const char *name, KEY_CACHE *key_cache) { + char llbuff1[22]; + char llbuff2[22]; + char llbuff3[22]; + char llbuff4[22]; + if (!key_cache->key_cache_inited) { printf("%s: Not in use\n", name); @@ -421,16 +426,18 @@ Division_limit: %10lu\n\ Age_limit: %10lu\n\ blocks used: %10lu\n\ not flushed: %10lu\n\ -w_requests: %10lu\n\ -writes: %10lu\n\ -r_requests: %10lu\n\ -reads: %10lu\n\n", +w_requests: %10s\n\ +writes: %10s\n\ +r_requests: %10s\n\ +reads: %10s\n\n", name, (ulong) key_cache->param_buff_size, key_cache->param_block_size, key_cache->param_division_limit, key_cache->param_age_threshold, key_cache->blocks_used,key_cache->global_blocks_changed, - key_cache->global_cache_w_requests,key_cache->global_cache_write, - key_cache->global_cache_r_requests,key_cache->global_cache_read); + llstr(key_cache->global_cache_w_requests,llbuff1), + llstr(key_cache->global_cache_write,llbuff2), + llstr(key_cache->global_cache_r_requests,llbuff3), + llstr(key_cache->global_cache_read,llbuff4)); } return 0; } |