mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
sane implementation of Key_% status variables.
This commit is contained in:
@ -441,6 +441,9 @@ static int print_key_cache_status(const char *name, KEY_CACHE *key_cache)
|
||||
}
|
||||
else
|
||||
{
|
||||
KEY_CACHE_STATISTICS stats;
|
||||
get_key_cache_statistics(key_cache, 0, &stats);
|
||||
|
||||
printf("%s\n\
|
||||
Buffer_size: %10lu\n\
|
||||
Block_size: %10lu\n\
|
||||
@ -457,11 +460,12 @@ reads: %10s\n\n",
|
||||
(ulong) key_cache->param_buff_size, key_cache->param_block_size,
|
||||
key_cache->param_division_limit, key_cache->param_age_threshold,
|
||||
key_cache->param_partitions,
|
||||
key_cache->blocks_used,key_cache->global_blocks_changed,
|
||||
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));
|
||||
(ulong)stats.blocks_used,
|
||||
(ulong)stats.blocks_changed,
|
||||
llstr(stats.write_requests,llbuff1),
|
||||
llstr(stats.writes,llbuff2),
|
||||
llstr(stats.read_requests,llbuff3),
|
||||
llstr(stats.reads,llbuff4));
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user