1
# This test checks that a slave DOES execute queries originating
2
# from itself, if running with --replicate-same-server-id.
4
source include/master-slave.inc;
6
create table t1 (n int);
10
--replace_result $SLAVE_MYPORT SLAVE_PORT
11
eval change master to master_port=$SLAVE_MYPORT;
12
--replace_result $SLAVE_MYPORT SLAVE_PORT
13
--replace_column 18 # 35 # 36 #
14
query_vertical show slave status;
16
insert into t1 values (1);
19
select * from t1; # check that indeed 2 were inserted
20
# We stop the slave before cleaning up otherwise we'll get
21
# 'drop table t1' executed twice, so an error in the slave.err