diff options
author | unknown <sasha@mysql.sashanet.com> | 2001-06-28 18:22:29 -0600 |
---|---|---|
committer | unknown <sasha@mysql.sashanet.com> | 2001-06-28 18:22:29 -0600 |
commit | c7e200cdd8fcb0429442f6441e42500fea8f899c (patch) | |
tree | cb4a8d96c0034fc1d1761a36370587c6845aae72 /mysql-test/t/rpl_sporadic_master.test | |
parent | 91239689e55a7cf8cc245f8311ed6e59a4d195b1 (diff) | |
download | mariadb-git-c7e200cdd8fcb0429442f6441e42500fea8f899c.tar.gz |
fixed message in post-commit trigger
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
Diffstat (limited to 'mysql-test/t/rpl_sporadic_master.test')
-rw-r--r-- | mysql-test/t/rpl_sporadic_master.test | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/mysql-test/t/rpl_sporadic_master.test b/mysql-test/t/rpl_sporadic_master.test new file mode 100644 index 00000000000..ce6568f659e --- /dev/null +++ b/mysql-test/t/rpl_sporadic_master.test @@ -0,0 +1,24 @@ +#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; |