mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 14:02:32 +01:00
4cf30d44ef
manually resolved conflicts: Text conflict in client/mysqltest.c Contents conflict in mysql-test/include/have_bug25714.inc Text conflict in mysql-test/include/have_ndbapi_examples.inc Text conflict in mysql-test/mysql-test-run.pl Text conflict in mysql-test/suite/parts/inc/partition_check_drop.inc Text conflict in mysql-test/suite/parts/inc/partition_layout.inc Text conflict in mysql-test/suite/parts/inc/partition_layout_check1.inc Text conflict in mysql-test/suite/parts/inc/partition_layout_check2.inc Text conflict in mysql-test/suite/parts/r/partition_alter1_1_2_myisam.result Text conflict in mysql-test/suite/parts/r/partition_alter1_1_myisam.result Text conflict in mysql-test/suite/parts/r/partition_alter1_2_myisam.result Text conflict in mysql-test/suite/parts/r/partition_alter2_myisam.result Text conflict in mysql-test/suite/parts/r/partition_alter3_innodb.result Text conflict in mysql-test/suite/parts/r/partition_alter3_myisam.result Text conflict in mysql-test/suite/parts/r/partition_basic_innodb.result Text conflict in mysql-test/suite/parts/r/partition_basic_myisam.result Text conflict in mysql-test/suite/parts/r/partition_basic_symlink_myisam.result Text conflict in mysql-test/suite/parts/r/partition_engine_myisam.result Text conflict in mysql-test/suite/parts/r/partition_syntax_myisam.result Text conflict in mysql-test/suite/rpl_ndb/t/disabled.def Text conflict in mysql-test/t/disabled.def
24 lines
965 B
Text
24 lines
965 B
Text
# 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.
|
|
|
|
source include/master-slave.inc;
|
|
connection slave;
|
|
reset master;
|
|
|
|
# replicate ourselves
|
|
source include/stop_slave.inc;
|
|
--replace_result $SLAVE_MYPORT SLAVE_PORT
|
|
eval change master to master_port=$SLAVE_MYPORT;
|
|
start slave;
|
|
|
|
let $slave_param= Last_IO_Errno;
|
|
let $slave_param_value= 1593;
|
|
source include/wait_for_slave_param.inc;
|
|
--echo *** must be having the replicate-same-server-id IO thread error ***
|
|
let $last_io_errno= query_get_value("show slave status", Last_IO_Errno, 1);
|
|
let $last_io_error= query_get_value("show slave status", Last_IO_Error, 1);
|
|
echo Slave_IO_Errno= $last_io_errno;
|
|
echo Slave_IO_Error= $last_io_error;
|