summaryrefslogtreecommitdiff
path: root/mysql-test/suite/perfschema/t/query_cache.test
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/suite/perfschema/t/query_cache.test')
-rw-r--r--mysql-test/suite/perfschema/t/query_cache.test4
1 files changed, 3 insertions, 1 deletions
diff --git a/mysql-test/suite/perfschema/t/query_cache.test b/mysql-test/suite/perfschema/t/query_cache.test
index 802e574f89b..4c130813611 100644
--- a/mysql-test/suite/perfschema/t/query_cache.test
+++ b/mysql-test/suite/perfschema/t/query_cache.test
@@ -7,6 +7,8 @@
--source include/not_embedded.inc
--source include/have_perfschema.inc
+set @save_query_cache_size=@@query_cache_size;
+
--disable_warnings
drop table if exists t1;
--enable_warnings
@@ -50,7 +52,7 @@ show status like "Qcache_queries_in_cache";
show status like "Qcache_inserts";
show status like "Qcache_hits";
-SET GLOBAL query_cache_size= default;
+SET GLOBAL query_cache_size=@save_query_cache_size;
drop table t1;
flush status;