Commit 47ed572f authored by unknown's avatar unknown

BUG#15624: Use --real_sleep in rpl_deadlock.test to avoid breaking when run with --sleep.


mysql-test/t/rpl_deadlock.test:
  BUG#15624: Use --real_sleep to avoid breaking when run with --sleep.
parent 63a27144
...@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment