Commit 77569d67 authored by thek@adventure.(none)'s avatar thek@adventure.(none)

Fixed faulty test case caused by race condition.

parent 3cd3a40d
...@@ -11,14 +11,14 @@ On a second connection; clear the query cache. ...@@ -11,14 +11,14 @@ On a second connection; clear the query cache.
show status like 'Qcache_queries_in_cache'; show status like 'Qcache_queries_in_cache';
Variable_name Value Variable_name Value
Qcache_queries_in_cache 1 Qcache_queries_in_cache 1
set global query_cache_size= 0;; set global query_cache_size= 0;
Signal the debug hook to release the lock. Signal the debug hook to release the lock.
select id from information_schema.processlist where state='wait_in_query_cache_insert' into @thread_id; select id from information_schema.processlist where state='wait_in_query_cache_insert' into @thread_id;
kill query @thread_id; kill query @thread_id;
Show query cache status. Show query cache status.
show status like 'Qcache_queries_in_cache'; show status like 'Qcache_queries_in_cache';
Variable_name Value Variable_name Value
Qcache_queries_in_cache 1 Qcache_queries_in_cache 0
set global query_cache_size= 0; set global query_cache_size= 0;
use test; use test;
drop table t1; drop table t1;
--source include/not_embedded.inc
--source include/have_query_cache.inc --source include/have_query_cache.inc
--source include/have_debug.inc --source include/have_debug.inc
...@@ -27,7 +28,7 @@ let $wait_condition= select count(*)= 1 from information_schema.processlist wher ...@@ -27,7 +28,7 @@ let $wait_condition= select count(*)= 1 from information_schema.processlist wher
connection bug30887con2; connection bug30887con2;
--echo On a second connection; clear the query cache. --echo On a second connection; clear the query cache.
show status like 'Qcache_queries_in_cache'; show status like 'Qcache_queries_in_cache';
--send set global query_cache_size= 0; set global query_cache_size= 0;
connection default; connection default;
--echo Signal the debug hook to release the lock. --echo Signal the debug hook to release the lock.
......
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