2004-06-03 23:17:18 +02:00
|
|
|
# This test checks that the slave I/O thread refuses to start if slave
|
|
|
|
# and master have the same server id (because this is a useless setup,
|
|
|
|
# and otherwise SHOW SLAVE STATUS shows progress but all queries are
|
|
|
|
# ignored, which has caught our customers), unless
|
|
|
|
# --replicate-same-server-id.
|
2004-04-28 18:24:46 +02:00
|
|
|
|
|
|
|
source include/master-slave.inc;
|
|
|
|
connection slave;
|
|
|
|
reset master;
|
2008-02-20 23:18:01 +02:00
|
|
|
|
2004-04-28 18:24:46 +02:00
|
|
|
# replicate ourselves
|
|
|
|
stop slave;
|
2004-04-28 23:43:46 +02:00
|
|
|
--replace_result $SLAVE_MYPORT SLAVE_PORT
|
2004-04-28 18:24:46 +02:00
|
|
|
eval change master to master_port=$SLAVE_MYPORT;
|
2008-02-20 23:18:01 +02:00
|
|
|
start slave;
|
|
|
|
|
|
|
|
--echo *** must be having the replicate-same-server-id IO thread error ***
|
|
|
|
|
|
|
|
source include/wait_for_slave_io_to_stop.inc;
|
|
|
|
|
2004-04-28 18:24:46 +02:00
|
|
|
--replace_result $SLAVE_MYPORT SLAVE_PORT
|
2008-02-20 23:18:01 +02:00
|
|
|
--replace_column 12 # 16 # 19 # 20 # 18 # 37 # 38 #
|
2007-06-11 22:15:39 +02:00
|
|
|
query_vertical show slave status;
|
2005-07-28 03:22:47 +03:00
|
|
|
|
|
|
|
# End of 4.1 tests
|