diff options
author | dlenev@dlenev.mshome <> | 2003-09-26 17:42:05 +0400 |
---|---|---|
committer | dlenev@dlenev.mshome <> | 2003-09-26 17:42:05 +0400 |
commit | 3f586da948ef3af2994fa1fc59474a2e8ad7befe (patch) | |
tree | d10ac42b67b1f20e50169e9a1b9172fa1cabcc3f /mysql-test/t/rpl_until.test | |
parent | 02e275fbdd033345b013ac3d921dd1f713885f44 (diff) | |
download | mariadb-git-3f586da948ef3af2994fa1fc59474a2e8ad7befe.tar.gz |
Fixed spurios failures of rpl_until test.
Diffstat (limited to 'mysql-test/t/rpl_until.test')
-rw-r--r-- | mysql-test/t/rpl_until.test | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mysql-test/t/rpl_until.test b/mysql-test/t/rpl_until.test index 0c9ff03b5bd..69101f8fa2c 100644 --- a/mysql-test/t/rpl_until.test +++ b/mysql-test/t/rpl_until.test @@ -3,8 +3,11 @@ source include/master-slave.inc; # prepare version for substitutions let $VERSION=`select version()`; -# stop slave before he will start replication +# stop slave before he will start replication also sync with master +# for avoiding undetermenistic behaviour +save_master_pos; connection slave; +sync_with_master; stop slave; connection master; @@ -37,7 +40,7 @@ sleep 2; show slave status; # try replicate all until second insert to t2; -start slave until relay_log_file='slave-relay-bin.000002', relay_log_pos=493; +start slave until relay_log_file='slave-relay-bin.000002', relay_log_pos=537; sleep 2; select * from t2; --replace_result $MASTER_MYPORT MASTER_MYPORT |