mariadb/mysql-test/t/rpl000011.test
sasha@mysql.sashanet.com 8b7391c9e0 fixed bug in master_pos_wait(), got rid of sleep hack,
added test/sanity check for master_pos_wait()
2001-01-22 12:35:16 -07:00

23 lines
460 B
Text

source include/master-slave.inc;
connection master;
use test;
drop table if exists t1;
create table t1 (n int);
insert into t1 values(1);
save_master_pos;
connection slave;
sync_with_master;
slave stop;
slave start;
connection master;
insert into t1 values(2);
save_master_pos;
connection slave;
#let slave catch up
sync_with_master;
@r/rpl000011.result select * from t1;
connection master;
drop table t1;
save_master_pos;
connection slave;
sync_with_master;