diff options
author | Sergei Golubchik <sergii@pisem.net> | 2010-11-02 10:12:29 +0100 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2010-11-02 10:12:29 +0100 |
commit | 74711a46153088e5e9159977b42ba7615a3af2df (patch) | |
tree | 16b52e05f461a0f9392f4c2bfaeacb3dadfeb126 /include | |
parent | 8e7ebfbce89a472b3c5a6c30e6de101e567a8218 (diff) | |
parent | 5789f96c624d00aeef137602ab0c4828620748e8 (diff) | |
download | mariadb-git-74711a46153088e5e9159977b42ba7615a3af2df.tar.gz |
merge w/ 5.2
Diffstat (limited to 'include')
-rw-r--r-- | include/keycache.h | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/include/keycache.h b/include/keycache.h index 25a204cede2..acb85522c0e 100644 --- a/include/keycache.h +++ b/include/keycache.h @@ -46,6 +46,7 @@ typedef struct st_key_cache_statistics ulonglong blocks_used; /* maximum number of used blocks/buffers */ ulonglong blocks_unused; /* number of currently unused blocks */ ulonglong blocks_changed; /* number of currently dirty blocks */ + ulonglong blocks_warm; /* number of blocks in warm sub-chain */ ulonglong read_requests; /* number of read requests (read hits) */ ulonglong reads; /* number of actual reads from files into buffers */ ulonglong write_requests; /* number of write requests (write hits) */ @@ -107,9 +108,6 @@ typedef void (*GET_KEY_CACHE_STATISTICS) (void *keycache_cb, uint partition_no, KEY_CACHE_STATISTICS *key_cache_stats); -typedef - ulonglong (*GET_KEY_CACHE_STAT_VALUE) - (void *keycache_cb, uint var_no); /* An object of the type KEY_CACHE_FUNCS contains pointers to all functions @@ -134,7 +132,6 @@ typedef struct st_key_cache_funcs RESET_KEY_CACHE_COUNTERS reset_counters; END_KEY_CACHE end; GET_KEY_CACHE_STATISTICS get_stats; - GET_KEY_CACHE_STAT_VALUE get_stat_val; } KEY_CACHE_FUNCS; @@ -153,13 +150,6 @@ typedef struct st_key_cache my_bool in_init; /* Set to 1 in MySQL during init/resize */ uint partitions; /* actual number of partitions */ size_t key_cache_mem_size; /* specified size of the cache memory */ - ulong blocks_used; /* maximum number of concurrently used blocks */ - ulong blocks_unused; /* number of currently unused blocks */ - ulong global_blocks_changed; /* number of currently dirty blocks */ - ulonglong global_cache_w_requests;/* number of write requests (write hits) */ - ulonglong global_cache_write; /* number of writes from cache to files */ - ulonglong global_cache_r_requests;/* number of read requests (read hits) */ - ulonglong global_cache_read; /* number of reads from files to cache */ } KEY_CACHE; @@ -193,7 +183,6 @@ extern void end_key_cache(KEY_CACHE *keycache, my_bool cleanup); extern void get_key_cache_statistics(KEY_CACHE *keycache, uint partition_no, KEY_CACHE_STATISTICS *key_cache_stats); -extern ulonglong get_key_cache_stat_value(KEY_CACHE *keycache, uint var_no); /* Functions to handle multiple key caches */ extern my_bool multi_keycache_init(void); |