3
# Waits until the SQL thread of the current connection has got an
4
# error, or until a timeout is reached. Also waits until the SQL
5
# thread has completely stopped.
9
# source include/wait_for_slave_sql_error.inc;
14
# The expected SQL error number. This is required.
15
# (After BUG#41956 has been fixed, this will be required to be a
16
# symbolic name instead of a number.)
19
# See wait_for_slave_param.inc for description.
22
# See wait_for_slave_param.inc for description.
24
if (`SELECT '$slave_sql_errno' = ''`) {
25
--echo !!!ERROR IN TEST: you must set \$slave_sql_errno before sourcing wait_fro_slave_sql_error.inc
29
let $slave_param= Slave_SQL_Running;
30
let $slave_param_value= No;
31
let $slave_error_message= Failed while waiting for slave to stop the SQL thread (expecting error in the SQL thread);
32
source include/wait_for_slave_param.inc;
34
let $_error= query_get_value(SHOW SLAVE STATUS, Last_SQL_Errno, 1);
35
if (`SELECT '$_error' != '$slave_sql_errno'`) {
36
--echo Slave stopped with wrong error code: $_error (expected $slave_sql_errno)
37
source include/show_rpl_debug_info.inc;