summaryrefslogtreecommitdiff
path: root/mysql-test/r/status.result
diff options
context:
space:
mode:
authorSergey Vojtovich <svoj@mariadb.org>2017-08-10 15:45:03 +0400
committerSergey Vojtovich <svoj@mariadb.org>2017-10-31 19:13:20 +0400
commit613dd62a76b51df38b96e36bce5bd8b7be2ca73a (patch)
tree282dde02c308157ec86c051061c7ddfe669dba58 /mysql-test/r/status.result
parent5d3ed9acdda80828f7f3be8f7322b3e8366eab5f (diff)
downloadmariadb-git-613dd62a76b51df38b96e36bce5bd8b7be2ca73a.tar.gz
MDEV-11153 - Introduce status variables for table cache monitoring and tuning
Status variables added: Table_open_cache_hits, Table_open_cache_misses, Table_open_cache_overflows, Table_open_cache_active_instances.
Diffstat (limited to 'mysql-test/r/status.result')
-rw-r--r--mysql-test/r/status.result23
1 files changed, 23 insertions, 0 deletions
diff --git a/mysql-test/r/status.result b/mysql-test/r/status.result
index 9a8a5bd8f93..9b82c7896cb 100644
--- a/mysql-test/r/status.result
+++ b/mysql-test/r/status.result
@@ -386,6 +386,29 @@ Handler_tmp_write 2
Handler_update 0
Handler_write 0
drop table t1;
+#
+# MDEV-11153 - Introduce status variables for table cache monitoring and
+# tuning
+#
+SET @old_table_open_cache= @@table_open_cache;
+SET @@global.table_open_cache=10;
+FLUSH TABLES;
+FLUSH STATUS;
+SHOW STATUS LIKE 'Table_open_cache%';
+Variable_name Value
+Table_open_cache_active_instances 1
+Table_open_cache_hits 0
+Table_open_cache_misses 0
+Table_open_cache_overflows 0
+SHOW STATUS LIKE 'Table_open_cache%';
+Variable_name Value
+Table_open_cache_active_instances 1
+Table_open_cache_hits 30
+Table_open_cache_misses 15
+Table_open_cache_overflows 5
+FLUSH TABLES;
+FLUSH STATUS;
+SET @@global.table_open_cache= @old_table_open_cache;
connection default;
set @@global.concurrent_insert= @old_concurrent_insert;
SET GLOBAL log_output = @old_log_output;