From 6041d9c886b385ad61cdb37347d4763e4bef11b8 Mon Sep 17 00:00:00 2001 From: Luis Soares Date: Wed, 16 Mar 2011 15:11:54 +0000 Subject: Fix for BUG#11868903 (BUG#59717) There is a race between two threads: user thread and the dump thread. The former sets a debug instruction that makes the latter wait before processing an Xid event. There can be cases that the dump thread has not yet processed the previous Xid event, causing it to wait one Xid event too soon, thus causing sync_slave_with_master never to resume. We fix this by moving the instructions that set the debug variable after calling sync_slave_with_master. --- mysql-test/suite/rpl/r/rpl_stop_slave.result | 1 + 1 file changed, 1 insertion(+) (limited to 'mysql-test/suite/rpl/r/rpl_stop_slave.result') diff --git a/mysql-test/suite/rpl/r/rpl_stop_slave.result b/mysql-test/suite/rpl/r/rpl_stop_slave.result index ff0061f264b..7ea613fedd6 100644 --- a/mysql-test/suite/rpl/r/rpl_stop_slave.result +++ b/mysql-test/suite/rpl/r/rpl_stop_slave.result @@ -146,6 +146,7 @@ DROP TABLE t1, t2; CREATE TABLE t1 (c1 INT KEY, c2 INT) ENGINE=InnoDB; CREATE TABLE t2 (c1 INT) ENGINE=MyISAM; INSERT INTO t1 VALUES(1, 1); +[connection master] SET GLOBAL debug= 'd,dump_thread_wait_before_send_xid'; [connection slave] include/restart_slave.inc -- cgit v1.2.1