diff options
author | unknown <bell@sanja.is.com.ua> | 2002-07-28 22:36:34 +0300 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2002-07-28 22:36:34 +0300 |
commit | 5c8124bd43dd889e843ff1a90e9b109c28e4c8ef (patch) | |
tree | d5f672e9fa2a3a2ae3ee1c02bb87f967b58b5ec0 /mysql-test/t/query_cache.test | |
parent | 0e43c43636dde1e80e0b881317420609ba5faa8a (diff) | |
download | mariadb-git-5c8124bd43dd889e843ff1a90e9b109c28e4c8ef.tar.gz |
fixed query cahe resize bug
mysql-test/r/query_cache.result:
query cache resize bug test
mysql-test/t/query_cache.test:
query cache resize bug test
sql/set_var.cc:
typo fixed
sql/sql_cache.cc:
prevent of using very small (unusable) cache size, that cause problem in memory allocation system (query cache resize bug)
Diffstat (limited to 'mysql-test/t/query_cache.test')
-rw-r--r-- | mysql-test/t/query_cache.test | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/mysql-test/t/query_cache.test b/mysql-test/t/query_cache.test index e7633f3bae0..1c9f7c51bcc 100644 --- a/mysql-test/t/query_cache.test +++ b/mysql-test/t/query_cache.test @@ -336,3 +336,19 @@ select a from t1; show status like "Qcache_queries_in_cache"; drop table t1; show status like "Qcache_queries_in_cache"; + +# +# Test of query cache resizing +# +set GLOBAL query_cache_size=1000; +show global variables like "query_cache_size"; +set GLOBAL query_cache_size=1100; +set GLOBAL query_cache_size=1200; +set GLOBAL query_cache_size=1300; +set GLOBAL query_cache_size=1400; +set GLOBAL query_cache_size=1500; +set GLOBAL query_cache_size=1600; +set GLOBAL query_cache_size=1700; +set GLOBAL query_cache_size=1800; +set GLOBAL query_cache_size=1900; +show global variables like "query_cache_size"; |