mariadb/mysql-test/t/rpl000014.test
monty@donna.mysql.com 2d1082308b SHOW [FULL] COLUMNS
Added timeouts to replication tests to handle concurrent inserts
2001-01-22 05:32:58 +02:00

33 lines
746 B
Text

source include/master-slave.inc;
source include/have_default_master.inc;
connection master;
show master status;
save_master_pos;
connection slave;
sync_with_master;
show slave status;
change master to master_log_pos=73;
slave stop;
change master to master_log_pos=73;
show slave status;
slave start;
show slave status;
change master to master_log_pos=173;
show slave status;
connection master;
show master status;
create table if not exists foo(n int);
drop table if exists foo;
create table foo (n int);
insert into foo values (1),(2),(3);
save_master_pos;
connection slave;
change master to master_log_pos=73;
sync_with_master;
sleep 1;
select * from foo;
connection master;
drop table foo;
save_master_pos;
connection slave;
sync_with_master;