1
###################################################
4
#Purpose: To wait a brief time for slave to start
6
# 1) Fill in and setup variables
7
# 2) loop through looking for both
8
# io and sql threads to start
9
# 3) If loops too long die.
10
####################################################
18
let $io_result= query_get_value("SHOW SLAVE STATUS", Slave_IO_Running, $row_number);
19
if (`SELECT '$io_result' = 'Yes'`){
21
let $sql_result= query_get_value("SHOW SLAVE STATUS", Slave_SQL_Running, $row_number);
22
if (`SELECT '$sql_result' = 'Yes'`){
28
--echo "Failed while waiting for slave to start"
29
query_vertical SHOW SLAVE STATUS;
3
# Waits until both the IO and SQL threads of the current connection
4
# have started, or until a timeout is reached.
8
# source include/wait_for_slave_to_start.inc;
10
# Parameters to this macro are $slave_timeout and
11
# $master_connection. See wait_for_slave_param.inc for
14
let $slave_error_message= Failed while waiting for slave to start;
16
let $slave_param= Slave_IO_Running;
17
let $slave_param_value= Yes;
18
source include/wait_for_slave_param.inc;
20
let $slave_param= Slave_SQL_Running;
21
let $slave_param_value= Yes;
22
source include/wait_for_slave_param.inc;
24
let $slave_error_message= ;