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
ced5d539
Commit
ced5d539
authored
Jun 17, 2009
by
Staale Smedseng
Browse files
Options
Browse Files
Download
Plain Diff
Merge from upstream 5.1-bugteam
parents
c429fac6
84978d9d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
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
+3
-2
No files found.
mysql-test/r/query_cache_debug.result
View file @
ced5d539
...
@@ -141,9 +141,9 @@ KILL QUERY @flush_thread_id;
...
@@ -141,9 +141,9 @@ KILL QUERY @flush_thread_id;
** and finally release the mutex. The threads will continue to wait
** and finally release the mutex. The threads will continue to wait
** until a broadcast signal reaches them causing both threads to
** until a broadcast signal reaches them causing both threads to
** come alive and check the condition.
** come alive and check the condition.
SELECT SQL_NO_CACHE id FROM information_schema.processlist WHERE state='wait_in_query_cache_insert' LIMIT 1 INTO @thread_id;
SELECT SQL_NO_CACHE id FROM information_schema.processlist WHERE state='wait_in_query_cache_insert'
ORDER BY id ASC
LIMIT 1 INTO @thread_id;
KILL QUERY @thread_id;
KILL QUERY @thread_id;
SELECT SQL_NO_CACHE id FROM information_schema.processlist WHERE state='wait_in_query_cache_insert' LIMIT 1 INTO @thread_id;
SELECT SQL_NO_CACHE id FROM information_schema.processlist WHERE state='wait_in_query_cache_insert'
ORDER BY id DESC
LIMIT 1 INTO @thread_id;
KILL QUERY @thread_id;
KILL QUERY @thread_id;
**
**
** Finally signal the DELETE statement on THD1 one last time.
** Finally signal the DELETE statement on THD1 one last time.
...
...
mysql-test/t/query_cache_debug.test
View file @
ced5d539
...
@@ -206,10 +206,11 @@ LET $wait_condition= SELECT SQL_NO_CACHE COUNT(*)= 1 FROM information_schema.pro
...
@@ -206,10 +206,11 @@ LET $wait_condition= SELECT SQL_NO_CACHE COUNT(*)= 1 FROM information_schema.pro
--
echo
**
and
finally
release
the
mutex
.
The
threads
will
continue
to
wait
--
echo
**
and
finally
release
the
mutex
.
The
threads
will
continue
to
wait
--
echo
**
until
a
broadcast
signal
reaches
them
causing
both
threads
to
--
echo
**
until
a
broadcast
signal
reaches
them
causing
both
threads
to
--
echo
**
come
alive
and
check
the
condition
.
--
echo
**
come
alive
and
check
the
condition
.
SELECT
SQL_NO_CACHE
id
FROM
information_schema
.
processlist
WHERE
state
=
'wait_in_query_cache_insert'
LIMIT
1
INTO
@
thread_id
;
SELECT
SQL_NO_CACHE
id
FROM
information_schema
.
processlist
WHERE
state
=
'wait_in_query_cache_insert'
ORDER
BY
id
ASC
LIMIT
1
INTO
@
thread_id
;
KILL
QUERY
@
thread_id
;
KILL
QUERY
@
thread_id
;
SELECT
SQL_NO_CACHE
id
FROM
information_schema
.
processlist
WHERE
state
=
'wait_in_query_cache_insert'
LIMIT
1
INTO
@
thread_id
;
SELECT
SQL_NO_CACHE
id
FROM
information_schema
.
processlist
WHERE
state
=
'wait_in_query_cache_insert'
ORDER
BY
id
DESC
LIMIT
1
INTO
@
thread_id
;
KILL
QUERY
@
thread_id
;
KILL
QUERY
@
thread_id
;
--
echo
**
--
echo
**
--
echo
**
Finally
signal
the
DELETE
statement
on
THD1
one
last
time
.
--
echo
**
Finally
signal
the
DELETE
statement
on
THD1
one
last
time
.
--
echo
**
The
stmt
will
complete
the
query
cache
invalidation
and
return
--
echo
**
The
stmt
will
complete
the
query
cache
invalidation
and
return
...
...
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