summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorunknown <ingo@mysql.com>2005-09-14 13:18:16 +0200
committerunknown <ingo@mysql.com>2005-09-14 13:18:16 +0200
commit5fe65297d21ed815d221699cad46e44958f74a06 (patch)
treedb8c02e8e43fdc08335f800d9e4b724cd39e6b77 /include
parent683e228a26d8f8ea85e329e4f6f23ea625a85537 (diff)
downloadmariadb-git-5fe65297d21ed815d221699cad46e44958f74a06.tar.gz
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.
Diffstat (limited to 'include')
-rw-r--r--include/keycache.h8
-rw-r--r--include/my_sys.h3
2 files changed, 4 insertions, 7 deletions
diff --git a/include/keycache.h b/include/keycache.h
index a292a69b0a3..9fe1cce5da5 100644
--- a/include/keycache.h
+++ b/include/keycache.h
@@ -90,10 +90,10 @@ typedef struct st_key_cache
/* Statistics variables. These are reset in reset_key_cache_counters(). */
ulong global_blocks_changed; /* number of currently dirty blocks */
- ulong global_cache_w_requests;/* number of write requests (write hits) */
- ulong global_cache_write; /* number of writes from the cache to files */
- ulong global_cache_r_requests;/* number of read requests (read hits) */
- ulong global_cache_read; /* number of reads from files to the cache */
+ 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 */
int blocks; /* max number of blocks in the cache */
my_bool in_init; /* Set to 1 in MySQL during init/resize */
diff --git a/include/my_sys.h b/include/my_sys.h
index 01a8b92571b..9127a58d71c 100644
--- a/include/my_sys.h
+++ b/include/my_sys.h
@@ -216,9 +216,6 @@ extern CHARSET_INFO *all_charsets[256];
extern CHARSET_INFO compiled_charsets[];
/* statistics */
-extern ulonglong my_cache_w_requests, my_cache_write;
-extern ulonglong my_cache_r_requests, my_cache_read;
-extern ulong my_blocks_used, my_blocks_changed;
extern ulong my_file_opened,my_stream_opened, my_tmp_file_created;
extern uint mysys_usage_id;
extern my_bool my_init_done;