diff options
author | Michael Widenius <monty@mariadb.org> | 2014-09-15 17:11:01 +0300 |
---|---|---|
committer | Michael Widenius <monty@mariadb.org> | 2014-09-15 17:11:01 +0300 |
commit | 7a50ce1d3150d45db4c484927ea07af1419b29b9 (patch) | |
tree | 249074d0ac5bc7905a30155a6ce08be95a075757 /sql/sql_test.cc | |
parent | 50e67fe3bfb494e4c6b12c91e4cec2083f6b6095 (diff) | |
download | mariadb-git-7a50ce1d3150d45db4c484927ea07af1419b29b9.tar.gz |
Use LOCK_show_status when we add things to all_status_vars
This was missing in my last commit for fixing possible lockups in SHOW STATUS.
sql/log.cc:
Fixed comment
sql/sql_show.cc:
Use LOCK_show_status when we add things to all_status_vars
sql/sql_test.cc:
Remove not needed mutex_lock
Diffstat (limited to 'sql/sql_test.cc')
-rw-r--r-- | sql/sql_test.cc | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sql/sql_test.cc b/sql/sql_test.cc index c54a7f302e9..60e9b2cc54c 100644 --- a/sql/sql_test.cc +++ b/sql/sql_test.cc @@ -575,7 +575,6 @@ void mysql_print_status() /* Print key cache status */ puts("\nKey caches:"); process_key_caches(print_key_cache_status, 0); - mysql_mutex_lock(&LOCK_status); printf("\nhandler status:\n\ read_key: %10lu\n\ read_next: %10lu\n\ @@ -591,7 +590,6 @@ update: %10lu\n", tmp.ha_write_count, tmp.ha_delete_count, tmp.ha_update_count); - mysql_mutex_unlock(&LOCK_status); printf("\nTable status:\n\ Opened tables: %10lu\n\ Open tables: %10lu\n\ |