| 1 |
# |
| 2 |
# This include file is used by more than one test suite |
| 3 |
# (currently rpl and binlog_encryption). |
| 4 |
# Please check all dependent tests after modifying it |
| 5 |
# |
| 6 |
|
| 7 |
# test to see if replication can continue when master sporadically fails on |
| 8 |
# COM_BINLOG_DUMP and additionally limits the number of events per dump |
| 9 |
|
| 10 |
source include/master-slave.inc; |
| 11 |
|
| 12 |
create table t2(n int); |
| 13 |
create table t1(n int not null auto_increment primary key); |
| 14 |
insert into t1 values (NULL),(NULL); |
| 15 |
truncate table t1; |
| 16 |
# We have to use 4 in the following to make this test work with all table types |
| 17 |
insert into t1 values (4),(NULL); |
| 18 |
sync_slave_with_master; |
| 19 |
--source include/stop_slave.inc |
| 20 |
--source include/start_slave.inc |
| 21 |
connection master; |
| 22 |
insert into t1 values (NULL),(NULL); |
| 23 |
flush logs; |
| 24 |
truncate table t1; |
| 25 |
insert into t1 values (10),(NULL),(NULL),(NULL),(NULL),(NULL); |
| 26 |
sync_slave_with_master; |
| 27 |
select * from t1 ORDER BY n; |
| 28 |
connection master; |
| 29 |
drop table t1,t2; |
| 30 |
sync_slave_with_master; |
| 31 |
|
| 32 |
--source include/rpl_end.inc |