3 # Waits until the slave IO thread has been synced, i.e., all events
4 # have been copied over to slave. Does not care if the SQL thread is
5 # in sync (or even running).
10 # [--let $sync_slave_connection= <connection_name>]
11 # [--let $use_gtids= 1]
12 # [--let $slave_timeout= NUMBER]
13 # [--let $rpl_debug= 1]
14 # --source include/sync_slave_io_with_master.inc
16 # Must be called on the master. Will change connection to the slave.
21 # If set, uses GTIDs instead of filename and offset for positions.
23 # $sync_slave_connection
24 # By default, this script switches connection to 'slave'. If
25 # $sync_slave_connection is set, then '$sync_slave_connection' is
26 # used instead of 'slave'.
29 # See include/wait_for_slave_param.inc.
32 # See include/rpl_init.inc
34 --let $include_filename= sync_slave_io_with_master.inc
35 --source include/begin_include_file.inc
38 --source include/save_master_pos.inc
40 --let $rpl_connection_name= slave
41 if ($sync_slave_connection)
43 --let $rpl_connection_name= $sync_slave_connection
45 --source include/rpl_connection.inc
47 --source include/sync_slave_io.inc
50 --let $include_filename= sync_slave_io_with_master.inc
51 --let $skip_restore_connection= 1
52 --source include/end_include_file.inc