mirror of
https://github.com/MariaDB/server.git
synced 2025-08-29 00:08:14 +03:00
added test/sanity check for master_pos_wait() mysql-test/r/rpl000016.result: do show slave status to test master_pos_wait() mysql-test/t/rpl000001.test: no sleep mysql-test/t/rpl000002.test: no sleep mysql-test/t/rpl000003.test: no sleep mysql-test/t/rpl000007.test: !sleep mysql-test/t/rpl000008.test: !sleep mysql-test/t/rpl000009.test: no sleep mysql-test/t/rpl000010.test: no sleep mysql-test/t/rpl000011.test: no sleep mysql-test/t/rpl000012.test: no sleep mysql-test/t/rpl000013.test: no sleep mysql-test/t/rpl000014.test: no sleep mysql-test/t/rpl000015.test: no sleep mysql-test/t/rpl000016.test: no sleep, test that master_pos_wait() works right sql/slave.cc: fixed bug in master_pos_wait()
27 lines
689 B
Plaintext
27 lines
689 B
Plaintext
#this one assumes we are ignoring updates on table foo, but doing
|
|
#the ones on bar
|
|
source include/master-slave.inc;
|
|
connection slave;
|
|
use test;
|
|
drop table if exists foo;
|
|
create table foo (n int);
|
|
insert into foo values(4);
|
|
connection master;
|
|
use test;
|
|
drop table if exists foo;
|
|
create table foo (s char(20));
|
|
load data infile '../../std_data/words.dat' into table foo;
|
|
insert into foo values('five');
|
|
drop table if exists bar;
|
|
create table bar (m int);
|
|
insert into bar values(15);
|
|
save_master_pos;
|
|
connection slave;
|
|
sync_with_master;
|
|
@r/rpl000007.result select foo.n,bar.m from foo,bar;
|
|
connection master;
|
|
drop table if exists bar,foo;
|
|
save_master_pos;
|
|
connection slave;
|
|
sync_with_master;
|