2000-12-07 15:54:59 +01:00
|
|
|
source include/master-slave.inc;
|
2000-11-25 03:49:13 +01:00
|
|
|
connection master;
|
|
|
|
use test;
|
2001-01-03 01:15:48 +01:00
|
|
|
drop table if exists t1;
|
|
|
|
create table t1 (n int);
|
|
|
|
insert into t1 values(1);
|
2000-11-25 03:49:13 +01:00
|
|
|
connection slave;
|
|
|
|
#give slave some breathing room to get started
|
2001-01-03 01:15:48 +01:00
|
|
|
sleep 2;
|
2000-11-25 03:49:13 +01:00
|
|
|
slave stop;
|
|
|
|
slave start;
|
|
|
|
connection master;
|
2001-01-03 01:15:48 +01:00
|
|
|
insert into t1 values(2);
|
2000-11-25 03:49:13 +01:00
|
|
|
connection slave;
|
|
|
|
#let slave catch up
|
2001-01-03 01:15:48 +01:00
|
|
|
sleep 2;
|
|
|
|
@r/rpl000011.result select * from t1;
|
|
|
|
connection master;
|
|
|
|
drop table t1;
|