mirror of
https://github.com/MariaDB/server.git
synced 2025-05-10 02:01:19 +03:00
The test case added failed sporadically on PB. This is due to the fact that the user thread in some cases is waiting for slave IO to stop and then check the error number. Thence, sometimes the user thread would race for the error number with IO thread. This post push fix addresses this by replacing the wait for slave io to stop with a wait for slave io error (as it seems it was added in 6.0 also after patch on which this is based was pushed). This implied backporting wait_for_slave_io_error.inc from 6.0 also.
24 lines
699 B
PHP
24 lines
699 B
PHP
# ==== Purpose ====
|
|
#
|
|
# Waits until the IO thread of the current connection has got an
|
|
# error, or until a timeout is reached.
|
|
#
|
|
# ==== Usage ====
|
|
#
|
|
# source include/wait_for_slave_io_error.inc;
|
|
#
|
|
# Parameters to this macro are $slave_timeout and
|
|
# $slave_keep_connection. See wait_for_slave_param.inc for
|
|
# descriptions.
|
|
|
|
let $old_slave_param_comparison= $slave_param_comparison;
|
|
|
|
let $slave_param= Last_IO_Errno;
|
|
let $slave_param_comparison= !=;
|
|
let $slave_param_value= 0;
|
|
let $slave_error_message= Failed while waiting for slave to produce an error in its sql thread;
|
|
source include/wait_for_slave_param.inc;
|
|
let $slave_error_message= ;
|
|
|
|
let $slave_param_comparison= $old_slave_param_comparison;
|