summaryrefslogtreecommitdiff
path: root/mysql-test/include/wait_for_sql_thread_read_all.inc
blob: 1829591c5d1e9c3bb5ee4ac78c092b7d25bf5e27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# 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.

--let $show_statement = show all slaves status
--let $field = Slave_SQL_State
--let $condition = = 'Slave has read all relay log; waiting for more updates'
--let $wait_for_all = 1
--source include/wait_show_condition.inc