Commit 683edc65 authored by lars@mysql.com's avatar lars@mysql.com

Reverted old fix with sync_slave_with_master and added a replace commands

to eliminate nondeterminism in slave start
parent e5503c27
...@@ -19,7 +19,7 @@ flush privileges; ...@@ -19,7 +19,7 @@ flush privileges;
stop slave; stop slave;
start slave; start slave;
show slave status; show slave status;
Slave_IO_State Connecting to master Slave_IO_State #
Master_Host 127.0.0.1 Master_Host 127.0.0.1
Master_User rpl Master_User rpl
Master_Port MASTER_MYPORT Master_Port MASTER_MYPORT
......
...@@ -19,12 +19,13 @@ select * from t1; ...@@ -19,12 +19,13 @@ select * from t1;
connection master; connection master;
delete from mysql.user where user='rpl'; delete from mysql.user where user='rpl';
flush privileges; flush privileges;
sync_slave_with_master;
connection slave; connection slave;
stop slave; stop slave;
start slave; start slave;
--replace_result $MASTER_MYPORT MASTER_MYPORT --replace_result $MASTER_MYPORT MASTER_MYPORT
--replace_column 7 # 8 # 9 # 22 # 23 # # Column 1 is replaced, since the output can be either
# "Connecting to master" or "Waiting for master update"
--replace_column 1 # 7 # 8 # 9 # 22 # 23 #
--vertical_results --vertical_results
show slave status; show slave status;
......
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