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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
cedfe557
Commit
cedfe557
authored
Jan 11, 2008
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed faulty test case caused by race condition.
mysql-test/r/query_cache_debug.result: Fixed faulty test case.
parent
44101143
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 @
cedfe557
...
...
@@ -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 @
cedfe557
--
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