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
d58c9e08
Commit
d58c9e08
authored
Feb 27, 2008
by
davi@mysql.com/endora.local
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for team tree failure. Synchronously wait for the query state
to reach the desired value.
parent
566ca2ba
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
mysql-test/r/flush_read_lock_kill.result
mysql-test/r/flush_read_lock_kill.result
+1
-0
mysql-test/t/flush_read_lock_kill.test
mysql-test/t/flush_read_lock_kill.test
+12
-1
No files found.
mysql-test/r/flush_read_lock_kill.result
View file @
d58c9e08
set @@global.concurrent_insert= 0;
drop table if exists t1;
drop table if exists t1;
create table t1 (kill_id int);
create table t1 (kill_id int);
insert into t1 values(connection_id());
insert into t1 values(connection_id());
...
...
mysql-test/t/flush_read_lock_kill.test
View file @
d58c9e08
...
@@ -12,6 +12,10 @@
...
@@ -12,6 +12,10 @@
--
source
include
/
have_debug
.
inc
--
source
include
/
have_debug
.
inc
# Disable concurrent inserts to avoid test failures when reading the
# connection id which was inserted into a table by another thread.
set
@@
global
.
concurrent_insert
=
0
;
connect
(
con1
,
localhost
,
root
,,);
connect
(
con1
,
localhost
,
root
,,);
connect
(
con2
,
localhost
,
root
,,);
connect
(
con2
,
localhost
,
root
,,);
connection
con1
;
connection
con1
;
...
@@ -34,7 +38,14 @@ send flush tables with read lock;
...
@@ -34,7 +38,14 @@ send flush tables with read lock;
connection
con2
;
connection
con2
;
select
((
@
id
:=
kill_id
)
-
kill_id
)
from
t1
;
select
((
@
id
:=
kill_id
)
-
kill_id
)
from
t1
;
--
sleep
2
# leave time for FLUSH to block
# Wait for the debug sync point, test won't run on non-debug
# builds anyway.
let
$wait_condition
=
select
count
(
*
)
=
1
from
information_schema
.
processlist
where
state
=
"Waiting for all running commits to finish"
and
info
=
"flush tables with read lock"
;
--
source
include
/
wait_condition
.
inc
kill
connection
@
id
;
kill
connection
@
id
;
connection
con1
;
connection
con1
;
...
...
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