| 1 |
# See the top of mysql-test/include/rpl_conflicts.test for |
| 2 |
# explanation of what this test does. |
| 3 |
# |
| 4 |
# This test file is for row-logging mode. It runs the test twice, with |
| 5 |
# slave_exec_mode=STRICT and slave_exec_mode=IDEMPOTENT, respectively. |
| 6 |
|
| 7 |
source include/have_binlog_format_row.inc; |
| 8 |
source include/master-slave.inc; |
| 9 |
|
| 10 |
connection slave; |
| 11 |
call mtr.add_suppression("Slave: Can\'t find record in \'t1\' error.* .*"); |
| 12 |
call mtr.add_suppression("Can't find record in 't.'"); |
| 13 |
|
| 14 |
connection slave; |
| 15 |
SET @old_slave_exec_mode= @@global.slave_exec_mode; |
| 16 |
|
| 17 |
|
| 18 |
--echo ######## Run with slave_exec_mode=STRICT ######## |
| 19 |
|
| 20 |
SET @@global.slave_exec_mode = 'STRICT'; |
| 21 |
source include/rpl_conflicts.test; |
| 22 |
|
| 23 |
--source include/rpl_reset.inc |
| 24 |
|
| 25 |
|
| 26 |
--echo ######## Run with slave_exec_mode=IDEMPOTENT ######## |
| 27 |
|
| 28 |
set @@global.slave_exec_mode= 'IDEMPOTENT'; |
| 29 |
source include/rpl_conflicts.test; |
| 30 |
|
| 31 |
|
| 32 |
SET @@global.slave_exec_mode= @old_slave_exec_mode; |
| 33 |
--source include/rpl_end.inc |