mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 13:02:28 +01:00
4c1c9db823
in short we now record whenever the slave I/O thread ignores a master's event because of its server id, and use this info in the slave SQL thread to advance Exec_master_log_pos. Because if we do not, this variable stays at the position of the last executed event, i.e. the last *non-ignored* executed one, which may not be the last of the master's binlog (and so the slave *looks* behind the master though it's data-wise it's not).
22 lines
450 B
Text
22 lines
450 B
Text
stop slave;
|
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
|
reset master;
|
|
reset slave;
|
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
|
start slave;
|
|
reset master;
|
|
change master to master_host="127.0.0.1",master_port=SLAVE_PORT,master_user="root";
|
|
start slave;
|
|
create table t1 (n int);
|
|
create table t4 (n int);
|
|
create table t5 (n int);
|
|
create table t6 (n int);
|
|
show tables;
|
|
Tables_in_test
|
|
t1
|
|
t4
|
|
t5
|
|
t6
|
|
stop slave;
|
|
reset slave;
|
|
drop table t1,t4,t5,t6;
|