mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-32168: slave_error_param condition is never checked from the wait_for_slave_param.inc
- Reviewer: <knielsen@knielsen-hq.org> <brandon.nesterenko@mariadb.com> <andrei.elkin@mariadb.com>
This commit is contained in:
@ -59,7 +59,7 @@ let $_wfsie_errno= query_get_value(SHOW SLAVE STATUS, Last_IO_Errno, 1);
|
||||
|
||||
if ($slave_io_errno == '') {
|
||||
--echo !!!ERROR IN TEST: you must set \$slave_io_errno before you source
|
||||
--echo !!!wait_for_slave_sql_error.inc. The error we got this time was '$_wfsie_errno',
|
||||
--echo !!!wait_for_slave_io_error.inc. The error we got this time was '$_wfsie_errno',
|
||||
--echo !!!so you probably want to add the following line to your test case:
|
||||
--echo !!! --let \$slave_io_errno= $_wfsie_errno
|
||||
--die !!!ERROR IN TEST: you must set \$slave_io_errno before sourcing wait_for_slave_io_error.inc
|
||||
|
@ -56,11 +56,6 @@ if (!$_slave_timeout)
|
||||
}
|
||||
}
|
||||
|
||||
if ($slave_error_param == '')
|
||||
{
|
||||
--let $slave_error_param= 1
|
||||
}
|
||||
|
||||
let $_slave_param_comparison= $slave_param_comparison;
|
||||
if (!$_slave_param_comparison)
|
||||
{
|
||||
@ -90,7 +85,7 @@ while ($_slave_continue)
|
||||
--let $_show_slave_status_value= query_get_value("SHOW SLAVE STATUS", $slave_param, 1)
|
||||
|
||||
# Check if an error condition is reached.
|
||||
if (!$slave_error_param)
|
||||
if ($slave_error_param)
|
||||
{
|
||||
--let $_show_slave_status_error_value= query_get_value("SHOW SLAVE STATUS", $slave_error_param, 1)
|
||||
if ($_show_slave_status_error_value)
|
||||
|
Reference in New Issue
Block a user