3
# Waits the SQL thread of the current connection has stopped, or until
4
# a timeout is reached.
8
# source include/wait_for_slave_sql_to_stop.inc;
10
# Parameters to this macro are $slave_timeout and
11
# $master_connection. See wait_for_slave_param.inc for
14
# if server has not used CHANGE MASTER to initiate slave, SHOW SLAVE
15
# STATUS will return an empty set.
16
let $_slave_io_running= query_get_value("SHOW SLAVE STATUS", Slave_IO_Running, 1);
17
if (`SELECT '$_slave_io_running' != 'No such row'`)
19
let $slave_param= Slave_SQL_Running;
20
let $slave_param_value= No;
21
let $slave_error_message= Failed while waiting for slave SQL thread to stop;
22
source include/wait_for_slave_param.inc;
23
let $slave_error_message= ;