Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
07b61cbb
Commit
07b61cbb
authored
Sep 14, 2005
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug#12920 - key_read_requests counter appears to re-set
Enlarged the counter variables to ulonglong.
parent
3884629d
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
20 deletions
+25
-20
include/my_sys.h
include/my_sys.h
+2
-2
myisam/mi_test2.c
myisam/mi_test2.c
+4
-2
mysys/mf_keycache.c
mysys/mf_keycache.c
+7
-5
sql/mysqld.cc
sql/mysqld.cc
+4
-4
sql/sql_test.cc
sql/sql_test.cc
+8
-7
No files found.
include/my_sys.h
View file @
07b61cbb
...
...
@@ -222,8 +222,8 @@ extern char *get_charsets_dir(char *buf);
/* statistics */
extern
ulong
_my_cache_w_requests
,
_my_cache_write
,
_my_cache_r_requests
,
_my_cache_read
;
extern
ulong
long
_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
uint
key_cache_block_size
;
extern
ulong
my_file_opened
,
my_stream_opened
,
my_tmp_file_created
;
...
...
myisam/mi_test2.c
View file @
07b61cbb
...
...
@@ -812,12 +812,14 @@ end:
puts
(
"blobs used"
);
printf
(
"key cache status:
\n
\
blocks used:%10lu
\n
\
not flushed:%10lu
\n
\
w_requests: %10lu
\n
\
writes: %10lu
\n
\
r_requests: %10lu
\n
\
reads: %10lu
\n
"
,
_my_blocks_used
,
_my_cache_w_requests
,
_my_cache_write
,
_my_cache_r_requests
,
_my_cache_read
);
_my_blocks_used
,
_my_blocks_changed
,
(
ulong
)
_my_cache_w_requests
,
(
ulong
)
_my_cache_write
,
(
ulong
)
_my_cache_r_requests
,
(
ulong
)
_my_cache_read
);
}
end_key_cache
();
if
(
blob_buffer
)
...
...
mysys/mf_keycache.c
View file @
07b61cbb
...
...
@@ -62,8 +62,8 @@ static int _my_disk_blocks;
static
uint
_my_disk_blocks_used
,
_my_hash_blocks
;
static
uint
key_cache_shift
;
ulong
_my_blocks_used
,
_my_blocks_changed
;
ulong
_my_cache_w_requests
,
_my_cache_write
,
_my_cache_r_requests
,
_my_cache_read
;
ulong
long
_my_cache_w_requests
,
_my_cache_write
;
ulonglong
_my_cache_r_requests
,
_my_cache_read
;
uint
key_cache_block_size
=
DEFAULT_KEYCACHE_BLOCK_SIZE
;
static
byte
HUGE_PTR
*
_my_block_mem
;
static
SEC_LINK
*
changed_blocks
[
CHANGED_BLOCKS_HASH
];
...
...
@@ -192,9 +192,11 @@ void end_key_cache(void)
key_cache_inited
=
0
;
_my_hash_blocks
=
_my_blocks_used
=
0
;
DBUG_PRINT
(
"status"
,
(
"used: %d changed: %d w_requests: %ld writes: %ld r_requests: %ld reads: %ld"
,
_my_blocks_used
,
_my_blocks_changed
,
_my_cache_w_requests
,
_my_cache_write
,
_my_cache_r_requests
,
_my_cache_read
));
(
"used: %d changed: %d w_requests: %lu writes: %lu "
"r_requests: %lu reads: %lu"
,
_my_blocks_used
,
_my_blocks_changed
,
(
ulong
)
_my_cache_w_requests
,
(
ulong
)
_my_cache_write
,
(
ulong
)
_my_cache_r_requests
,
(
ulong
)
_my_cache_read
));
DBUG_VOID_RETURN
;
}
/* end_key_cache */
...
...
sql/mysqld.cc
View file @
07b61cbb
...
...
@@ -4532,10 +4532,10 @@ struct show_var_st status_vars[]= {
{
"Handler_update"
,
(
char
*
)
&
ha_update_count
,
SHOW_LONG
},
{
"Handler_write"
,
(
char
*
)
&
ha_write_count
,
SHOW_LONG
},
{
"Key_blocks_used"
,
(
char
*
)
&
_my_blocks_used
,
SHOW_LONG_CONST
},
{
"Key_read_requests"
,
(
char
*
)
&
_my_cache_r_requests
,
SHOW_LONG
},
{
"Key_reads"
,
(
char
*
)
&
_my_cache_read
,
SHOW_LONG
},
{
"Key_write_requests"
,
(
char
*
)
&
_my_cache_w_requests
,
SHOW_LONG
},
{
"Key_writes"
,
(
char
*
)
&
_my_cache_write
,
SHOW_LONG
},
{
"Key_read_requests"
,
(
char
*
)
&
_my_cache_r_requests
,
SHOW_LONG
LONG
},
{
"Key_reads"
,
(
char
*
)
&
_my_cache_read
,
SHOW_LONG
LONG
},
{
"Key_write_requests"
,
(
char
*
)
&
_my_cache_w_requests
,
SHOW_LONG
LONG
},
{
"Key_writes"
,
(
char
*
)
&
_my_cache_write
,
SHOW_LONG
LONG
},
{
"Max_used_connections"
,
(
char
*
)
&
max_used_connections
,
SHOW_LONG
},
{
"Not_flushed_delayed_rows"
,
(
char
*
)
&
delayed_rows_in_use
,
SHOW_LONG_CONST
},
{
"Not_flushed_key_blocks"
,
(
char
*
)
&
_my_blocks_changed
,
SHOW_LONG_CONST
},
...
...
sql/sql_test.cc
View file @
07b61cbb
...
...
@@ -195,6 +195,8 @@ TEST_join(JOIN *join)
void
mysql_print_status
(
THD
*
thd
)
{
char
current_dir
[
FN_REFLEN
];
char
llbuff
[
22
];
printf
(
"
\n
Status information:
\n\n
"
);
my_getwd
(
current_dir
,
sizeof
(
current_dir
),
MYF
(
0
));
printf
(
"Current dir: %s
\n
"
,
current_dir
);
...
...
@@ -214,13 +216,12 @@ void mysql_print_status(THD *thd)
pthread_mutex_lock
(
&
THR_LOCK_keycache
);
printf
(
"key_cache status:
\n
\
blocks used:%10lu
\n
\
not flushed:%10lu
\n
\
w_requests: %10lu
\n
\
writes: %10lu
\n
\
r_requests: %10lu
\n
\
reads: %10lu
\n
"
,
_my_blocks_used
,
_my_blocks_changed
,
_my_cache_w_requests
,
_my_cache_write
,
_my_cache_r_requests
,
_my_cache_read
);
not flushed:%10lu
\n
"
,
_my_blocks_used
,
_my_blocks_changed
);
printf
(
"w_requests: %10s
\n
"
,
llstr
(
_my_cache_w_requests
,
llbuff
));
printf
(
"writes: %10s
\n
"
,
llstr
(
_my_cache_write
,
llbuff
));
printf
(
"r_requests: %10s
\n
"
,
llstr
(
_my_cache_r_requests
,
llbuff
));
printf
(
"reads: %10s
\n
"
,
llstr
(
_my_cache_read
,
llbuff
));
pthread_mutex_unlock
(
&
THR_LOCK_keycache
);
if
(
thd
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment