Skip to content

Commit

Permalink
small cleanup of rpl.rpl_stop_slave
Browse files Browse the repository at this point in the history
  • Loading branch information
vuvova committed Aug 23, 2017
1 parent f753480 commit 77c41fa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
6 changes: 4 additions & 2 deletions mysql-test/suite/rpl/r/rpl_stop_slave.result
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ include/stop_slave.inc
# Suspend the INSERT statement in current transaction on SQL thread.
# It guarantees that SQL thread is applying the transaction when
# STOP SLAVE command launchs.
SET GLOBAL debug_dbug= '+d,after_mysql_insert,*';
set @old_debug=@@global.debug;
set global debug_dbug= '+d,after_mysql_insert';
include/start_slave.inc

# CREATE TEMPORARY TABLE with InnoDB engine
Expand Down Expand Up @@ -98,7 +99,8 @@ connection slave;
include/stop_slave.inc
connection master;
include/stop_dump_threads.inc
SET GLOBAL debug_dbug= '+d,dump_thread_wait_before_send_xid,*';
set @old_debug=@@global.debug;
set global debug_dbug= '+d,dump_thread_wait_before_send_xid';
connection slave;
include/start_slave.inc
BEGIN;
Expand Down
12 changes: 6 additions & 6 deletions mysql-test/suite/rpl/t/rpl_stop_slave.test
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ source include/stop_slave.inc;
--echo # Suspend the INSERT statement in current transaction on SQL thread.
--echo # It guarantees that SQL thread is applying the transaction when
--echo # STOP SLAVE command launchs.
let $debug_save= `SELECT @@GLOBAL.debug`;
SET GLOBAL debug_dbug= '+d,after_mysql_insert,*';
set @old_debug=@@global.debug;
set global debug_dbug= '+d,after_mysql_insert';
source include/start_slave.inc;

--echo
Expand All @@ -45,7 +45,7 @@ source extra/rpl_tests/rpl_stop_slave.test;
--echo
--echo # Test end
--disable_query_log
eval SET GLOBAL debug_dbug= '$debug_save';
set global debug_dbug= @old_debug;
--enable_query_log
source include/restart_slave_sql.inc;

Expand Down Expand Up @@ -79,8 +79,8 @@ connection master;
# make sure that there are no zombie threads
--source include/stop_dump_threads.inc

let $debug_save= `SELECT @@GLOBAL.debug`;
SET GLOBAL debug_dbug= '+d,dump_thread_wait_before_send_xid,*';
set @old_debug=@@global.debug;
set global debug_dbug= '+d,dump_thread_wait_before_send_xid';

connection slave;
--source include/start_slave.inc
Expand Down Expand Up @@ -127,7 +127,7 @@ reap;
# that would set the dump thread to wait
connection master;
--disable_query_log
eval SET GLOBAL debug_dbug= '$debug_save';
set global debug_dbug= @old_debug;
--enable_query_log
# make sure that there are no zombie threads
--source include/stop_dump_threads.inc
Expand Down

0 comments on commit 77c41fa

Please sign in to comment.