1
# This test checks that in a dual-head setup
2
# A->B->A, where A has --log-slave-updates (why would it?
3
# assume that there is a C as slave of A),
4
# then the Exec_master_log_pos of SHOW SLAVE STATUS does
5
# not stay too low on B(BUG#13023 due to events ignored because
7
# It also will test BUG#13861.
9
source include/master-slave.inc;
18
--replace_result $SLAVE_MYPORT SLAVE_PORT
19
eval change master to master_host="127.0.0.1",master_port=$SLAVE_MYPORT,master_user="root";
27
create table t1 (n int);
33
# Now test BUG#13861. This will be enabled when Guilhem fixes this
38
# create table t2 (n int); # create one ignored event
50
# create table t3 (n int);
54
# bug is that START SLAVE UNTIL may stop too late, we test that by
55
# asking it to stop before creation of t3.
57
# start slave until master_log_file="slave-bin.000001",master_log_pos=195;
59
# wait until it's started (the position below is the start of "CREATE
60
# TABLE t2") (otherwise wait_for_slave_to_stop may return at once)
62
# select master_pos_wait("slave-bin.000001",137);
64
# wait_for_slave_to_stop;
66
# then BUG#13861 causes t3 to show up below (because stopped too
73
# BUG#13023 is that Exec_master_log_pos may stay too low "forever":
77
create table t4 (n int); # create 3 ignored events
78
create table t5 (n int);
79
create table t6 (n int);
91
# then BUG#13023 caused hang below ("master" looks behind, while it's
92
# not in terms of updates done).
102
drop table t1,t4,t5,t6; # add t2 and t3 later