mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 11:01:52 +01:00
8b7391c9e0
added test/sanity check for master_pos_wait()
23 lines
535 B
Text
23 lines
535 B
Text
source include/master-slave.inc;
|
|
connection master;
|
|
use test;
|
|
drop table if exists t1;
|
|
create table t1 (word char(20) not null);
|
|
load data infile '../../std_data/words.dat' into table t1;
|
|
drop table if exists foo;
|
|
set password = password('foo');
|
|
set password = password('');
|
|
create table foo(n int);
|
|
insert into foo values(1),(2);
|
|
save_master_pos;
|
|
connection slave;
|
|
sync_with_master;
|
|
use test;
|
|
select * from foo;
|
|
select sum(length(word)) from t1;
|
|
connection master;
|
|
drop table t1;
|
|
save_master_pos;
|
|
connection slave;
|
|
sync_with_master;
|
|
|