mariadb/mysql-test/suite/engines/funcs/r/rpl_server_id1.result
Anel Husakovic 18acf97dfd MDEV-32168: slave_error_param condition is never checked from the wait_for_slave_param.inc
- Record unrecorded tests from `rpl` suite to `engines/funcs` suite
(done by d8e448ba1b):
  1) Record test `rpl_row_until` from commit d95fa7e332
  2) Record test `rpl_slave_status` from commit a7d186a17d

- Stop only running threads for `engines/funcs.rpl_server_id1.test` that
is not the same as `rpl.rpl_server_id1.test`

- Reviewer:  <knielsen@knielsen-hq.org>
             <andrei.elkin@mariadb.com>
2023-11-27 14:12:22 +01:00

21 lines
770 B
Text

include/master-slave.inc
[connection master]
connection slave;
create table t1 (n int);
reset master;
include/stop_slave.inc
change master to master_port=SLAVE_PORT;
Slave_IO_Running = 'No'
Slave_SQL_Running = 'No'
Last_SQL_Errno = '0'
Last_SQL_Error = ''
Exec_Master_Log_Pos = '0'
start slave;
insert into t1 values (1);
include/wait_for_slave_param.inc [Last_IO_Errno]
Last_IO_Errno = '1593'
Last_IO_Error = 'Fatal error: The slave I/O thread stops because master and slave have equal MySQL server ids; these ids must be different for replication to work (or the --replicate-same-server-id option must be used on slave but this does not always make sense; please check the manual before using it).'
include/stop_slave_sql.inc
reset slave;
reset master;
drop table t1;