summaryrefslogtreecommitdiffstats
path: root/mysql-test/include/stop_slave_io.inc
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/include/stop_slave_io.inc')
-rw-r--r--mysql-test/include/stop_slave_io.inc11
1 files changed, 10 insertions, 1 deletions
diff --git a/mysql-test/include/stop_slave_io.inc b/mysql-test/include/stop_slave_io.inc
index ddc83782..a9d97f2f 100644
--- a/mysql-test/include/stop_slave_io.inc
+++ b/mysql-test/include/stop_slave_io.inc
@@ -34,8 +34,17 @@ if (!$rpl_debug)
--disable_query_log
}
-
+let $_enable_warnings=0;
+if ($rpl_allow_error) {
+ if ($ENABLED_WARNINGS) {
+ let $_enable_warnings=1;
+ disable_warnings;
+ }
+}
STOP SLAVE IO_THREAD;
+if ($_enable_warnings) {
+ enable_warnings;
+}
--source include/wait_for_slave_io_to_stop.inc