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
c1551bf9
Commit
c1551bf9
authored
Dec 13, 2005
by
knielsen@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG#15624: Use --real_sleep in rpl_deadlock.test to avoid breaking when run with --sleep.
parent
7fe1a403
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
mysql-test/t/rpl_deadlock.test
mysql-test/t/rpl_deadlock.test
+3
-3
No files found.
mysql-test/t/rpl_deadlock.test
View file @
c1551bf9
...
@@ -58,7 +58,7 @@ while ($1)
...
@@ -58,7 +58,7 @@ while ($1)
enable_query_log
;
enable_query_log
;
select
*
from
t1
for
update
;
select
*
from
t1
for
update
;
start
slave
;
start
slave
;
--
sleep
3
# hope that slave is blocked now
--
real_
sleep
3
# hope that slave is blocked now
insert
into
t2
values
(
22
);
# provoke deadlock, slave should be victim
insert
into
t2
values
(
22
);
# provoke deadlock, slave should be victim
commit
;
commit
;
sync_with_master
;
sync_with_master
;
...
@@ -76,7 +76,7 @@ change master to master_log_pos=532; # the BEGIN log event
...
@@ -76,7 +76,7 @@ change master to master_log_pos=532; # the BEGIN log event
begin
;
begin
;
select
*
from
t2
for
update
;
# hold lock
select
*
from
t2
for
update
;
# hold lock
start
slave
;
start
slave
;
--
sleep
10
# slave should have blocked, and be retrying
--
real_
sleep
10
# slave should have blocked, and be retrying
commit
;
commit
;
sync_with_master
;
sync_with_master
;
select
*
from
t1
;
# check that slave succeeded finally
select
*
from
t1
;
# check that slave succeeded finally
...
@@ -97,7 +97,7 @@ change master to master_log_pos=532;
...
@@ -97,7 +97,7 @@ change master to master_log_pos=532;
begin
;
begin
;
select
*
from
t2
for
update
;
select
*
from
t2
for
update
;
start
slave
;
start
slave
;
--
sleep
10
--
real_
sleep
10
commit
;
commit
;
sync_with_master
;
sync_with_master
;
select
*
from
t1
;
select
*
from
t1
;
...
...
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