mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Bug#12920 - key_read_requests counter appears to re-set
After merge fix. include/keycache.h: Bug#12920 - key_read_requests counter appears to re-set After merge fix. Status variables moved into KEY_CACHE in 4.1. Enlarging them there. include/my_sys.h: Bug#12920 - key_read_requests counter appears to re-set After merge fix. Status variables moved into KEY_CACHE in 4.1. Removed unused global variables. myisam/mi_test2.c: Bug#12920 - key_read_requests counter appears to re-set After merge fix. Status variables moved into KEY_CACHE in 4.1. Changed to print default key cache status. mysys/mf_keycache.c: Bug#12920 - key_read_requests counter appears to re-set After merge fix. Status variables moved into KEY_CACHE in 4.1. Changed their debug printout. sql/mysqld.cc: Bug#12920 - key_read_requests counter appears to re-set After merge fix. Changed to print full value. sql/sql_show.cc: Bug#12920 - key_read_requests counter appears to re-set After merge fix. Added a branch for long long values. sql/sql_test.cc: Bug#12920 - key_read_requests counter appears to re-set After merge fix. changed to print full values. sql/structs.h: Bug#12920 - key_read_requests counter appears to re-set After merge fix. Added a branch for long long keycache values.
This commit is contained in:
@ -309,6 +309,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);
|
||||
@ -322,16 +327,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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user