1
--source include/master-slave.inc
2
--source include/have_debug.inc
4
--echo **** On Master ****
5
CREATE TABLE t1 (a INT);
7
INSERT INTO t1 VALUES (1),(2),(3);
10
# This will generate an incident log event and store it in the binary
11
# log before the replace statement.
12
REPLACE INTO t1 VALUES (4);
17
--wait_for_slave_to_stop
19
# The 4 should not be inserted into the table, since the incident log
20
# event should have stop the slave.
21
--echo **** On Slave ****
24
--replace_result $MASTER_MYPORT MASTER_PORT
25
--replace_column 1 # 6 # 7 # 8 # 9 # 22 # 23 # 33 #
26
--query_vertical SHOW SLAVE STATUS
28
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=1;
32
# Now, we should have inserted the row into the table and the slave
33
# should be running. We should also have rotated to a new binary log.
36
--replace_result $MASTER_MYPORT MASTER_PORT
37
--replace_column 1 # 6 # 7 # 8 # 9 # 22 # 23 # 33 #
38
--query_vertical SHOW SLAVE STATUS
42
--sync_slave_with_master