Commit 31ff514e authored by thek@adventure.(none)'s avatar thek@adventure.(none)

Merge adventure.(none):/home/thek/Development/cpp/bug25132/my50-bug25132

into  adventure.(none):/home/thek/Development/cpp/mysql-5.1-runtime
parents 78945e30 a13cba5a
...@@ -1650,6 +1650,16 @@ a (select count(*) from t2) ...@@ -1650,6 +1650,16 @@ a (select count(*) from t2)
3 0 3 0
4 0 4 0
drop table t1,t2; drop table t1,t2;
#
# Bug#25132 disabled query cache: Qcache_free_blocks = 1
#
set global query_cache_size=100000;
set global query_cache_size=0;
set global query_cache_type=0;
show status like 'Qcache_free_blocks';
Variable_name Value
Qcache_free_blocks 0
Restore default values.
set GLOBAL query_cache_type=default; set GLOBAL query_cache_type=default;
set GLOBAL query_cache_limit=default; set GLOBAL query_cache_limit=default;
set GLOBAL query_cache_min_res_unit=default; set GLOBAL query_cache_min_res_unit=default;
......
...@@ -1251,6 +1251,15 @@ disconnect user2; ...@@ -1251,6 +1251,15 @@ disconnect user2;
disconnect user3; disconnect user3;
# #
--echo #
--echo # Bug#25132 disabled query cache: Qcache_free_blocks = 1
--echo #
set global query_cache_size=100000;
set global query_cache_size=0;
set global query_cache_type=0;
show status like 'Qcache_free_blocks';
--echo Restore default values.
# Bug #28211 RENAME DATABASE and query cache don't play nicely together # Bug #28211 RENAME DATABASE and query cache don't play nicely together
# #
# TODO: enable these tests when RENAME DATABASE is implemented. # TODO: enable these tests when RENAME DATABASE is implemented.
......
...@@ -1998,6 +1998,7 @@ void Query_cache::make_disabled() ...@@ -1998,6 +1998,7 @@ void Query_cache::make_disabled()
query_cache_size= 0; query_cache_size= 0;
queries_blocks= 0; queries_blocks= 0;
free_memory= 0; free_memory= 0;
free_memory_blocks= 0;
bins= 0; bins= 0;
steps= 0; steps= 0;
cache= 0; cache= 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment