mariadb/mysql-test/t/rpl_sporadic_master.test
sasha@mysql.sashanet.com 5527f9bfc3 mysql-test/t/rpl_sporadic_master.test
fixed test case to produce same results on txn-enabled binary. 
    temporary fix - permanent fix is it make mysqld behave the same with
    MyISAM on auto_increment insert after delete from tbl_name regardless
    of how the binary was compiled
sql/slave.cc
    fixed concurrency bug with log_seq
sql/slave.h
    last_log_seq needs to be updated atomically with pos
sql/sql_repl.cc
    cleared up comment and fixed concurrency bug
2001-07-10 18:08:37 -06:00

29 lines
793 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;
set insert_id=1;
insert into t1 values (NULL),(NULL);
set insert_id=3;
insert into t1 values (NULL),(NULL);
flush logs;
delete from t1;
set insert_id=1;
insert into t1 values (NULL),(NULL);
set insert_id=3;
insert into t1 values (NULL),(NULL);
set insert_id=5;
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;