2021-08-24 00:45:39 +03:00
|
|
|
# This script ensures that a slave has executed everything in the relay log
|
|
|
|
# files. This can be used to ensure slave is in a predicate place after
|
|
|
|
# a FLUSH RELAY LOGS command.
|
|
|
|
# Note that this script does not guarantee that the slave has read everything
|
|
|
|
# from the master(s). If this is needed on should use the sync_with_master
|
|
|
|
# command or the sync_with_master script.
|
|
|
|
|
2012-10-05 00:36:17 +04:00
|
|
|
--let $show_statement = show all slaves status
|
|
|
|
--let $field = Slave_SQL_State
|
2020-02-15 18:25:57 +01:00
|
|
|
--let $condition = = 'Slave has read all relay log; waiting for more updates'
|
2012-10-05 00:36:17 +04:00
|
|
|
--let $wait_for_all = 1
|
|
|
|
--source include/wait_show_condition.inc
|