mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
c7e200cdd8
added debugging options to master to behave sporadically, and a test case to make sure the slave can deal with it BitKeeper/triggers/post-commit: fixed message sql/mysqld.cc: added debugging options to force the master to occasionally break replication sql/slave.cc: cosmetic change to improve readability sql/sql_repl.cc: support for --sporadic-binlog-dump-fail and --max-binlog-dump-events sql/sql_repl.h: support for --sporadic-binlog-dump-fail and --max-binlog-dump-events
24 lines
708 B
Text
24 lines
708 B
Text
#test to see if replication can continue when master sporadically fails on
|
|
# COM_BINLOG_DUMP and additionally limits the number of events per dump
|
|
source include/master-slave.inc;
|
|
connection master;
|
|
drop table if exists t1;
|
|
create table t1(n int not null auto_increment primary key);
|
|
insert into t1 values (NULL),(NULL);
|
|
delete from t1;
|
|
insert into t1 values (NULL),(NULL);
|
|
insert into t1 values (NULL),(NULL);
|
|
flush logs;
|
|
delete from t1;
|
|
insert into t1 values (NULL),(NULL);
|
|
insert into t1 values (NULL),(NULL);
|
|
insert into t1 values (NULL),(NULL);
|
|
save_master_pos;
|
|
connection slave;
|
|
sync_with_master;
|
|
select * from t1;
|
|
connection master;
|
|
drop table t1;
|
|
save_master_pos;
|
|
connection slave;
|
|
sync_with_master;
|