Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
77569d67
Commit
77569d67
authored
Jan 11, 2008
by
thek@adventure.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed faulty test case caused by race condition.
parent
3cd3a40d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
mysql-test/r/query_cache_debug.result
mysql-test/r/query_cache_debug.result
+2
-2
mysql-test/t/query_cache_debug.test
mysql-test/t/query_cache_debug.test
+2
-1
No files found.
mysql-test/r/query_cache_debug.result
View file @
77569d67
...
...
@@ -11,14 +11,14 @@ On a second connection; clear the query cache.
show status like 'Qcache_queries_in_cache';
Variable_name Value
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.
select id from information_schema.processlist where state='wait_in_query_cache_insert' into @thread_id;
kill query @thread_id;
Show query cache status.
show status like 'Qcache_queries_in_cache';
Variable_name Value
Qcache_queries_in_cache
1
Qcache_queries_in_cache
0
set global query_cache_size= 0;
use test;
drop table t1;
mysql-test/t/query_cache_debug.test
View file @
77569d67
--
source
include
/
not_embedded
.
inc
--
source
include
/
have_query_cache
.
inc
--
source
include
/
have_debug
.
inc
...
...
@@ -27,7 +28,7 @@ let $wait_condition= select count(*)= 1 from information_schema.processlist wher
connection
bug30887con2
;
--
echo
On
a
second
connection
;
clear
the
query
cache
.
show
status
like
'Qcache_queries_in_cache'
;
--
send
set
global
query_cache_size
=
0
;
set
global
query_cache_size
=
0
;
connection
default
;
--
echo
Signal
the
debug
hook
to
release
the
lock
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment