mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 21:12:26 +01:00
e4667fc518
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()
32 lines
737 B
Text
32 lines
737 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;
|
|
select * from foo;
|
|
connection master;
|
|
drop table foo;
|
|
save_master_pos;
|
|
connection slave;
|
|
sync_with_master;
|