mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Bug#28772, added waiting Until_Log_Pos when slave starting with UNTIL clause and then waiting stop of slave.
It helps to avoid issues when slave starts too slowly. mysql-test/suite/rpl/r/rpl_row_until.result: updated result file mysql-test/suite/rpl/t/rpl_row_until.test: updated test case
This commit is contained in:
@ -58,7 +58,10 @@ stop slave;
|
||||
--source include/wait_for_slave_to_stop.inc
|
||||
|
||||
# this should stop immediately as we are already there
|
||||
start slave until master_log_file='master-bin.000001', master_log_pos=740;
|
||||
start slave sql_thread until master_log_file='master-bin.000001', master_log_pos=740;
|
||||
--let $slave_param= Until_Log_Pos
|
||||
--let $slave_param_value= 740
|
||||
--source include/wait_for_slave_param.inc
|
||||
--source include/wait_for_slave_sql_to_stop.inc
|
||||
# here the sql slave thread should be stopped
|
||||
--replace_result bin.000005 bin.000004 bin.000006 bin.000004 bin.000007 bin.000004
|
||||
@ -76,5 +79,5 @@ start slave until relay_log_file='slave-relay-bin.000002';
|
||||
--error 1277
|
||||
start slave until relay_log_file='slave-relay-bin.000002', master_log_pos=561;
|
||||
# Warning should be given for second command
|
||||
start slave sql_thread;
|
||||
start slave;
|
||||
start slave until master_log_file='master-bin.000001', master_log_pos=740;
|
||||
|
Reference in New Issue
Block a user