mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 05:22:25 +01:00
5527f9bfc3
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
29 lines
793 B
Text
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;
|