mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Failed change master could leave around old relay log files
The reason was that there where no cleanup after a failed 'change master'. Fixed by doing a cleanup of created relay log files in remove_master_info()
This commit is contained in:
8
mysql-test/suite/multi_source/change_master.result
Normal file
8
mysql-test/suite/multi_source/change_master.result
Normal file
@@ -0,0 +1,8 @@
|
||||
RESET MASTER;
|
||||
connect slave,127.0.0.1,root,,,$SERVER_MYPORT_3;
|
||||
change master 'abc1' to relay_log_file='';
|
||||
ERROR HY000: Failed initializing relay log position: Could not find target log during relay log initialization
|
||||
change master 'abc1' to relay_log_file='';
|
||||
ERROR HY000: Failed initializing relay log position: Could not find target log during relay log initialization
|
||||
disconnect slave;
|
||||
connection default;
|
||||
13
mysql-test/suite/multi_source/change_master.test
Normal file
13
mysql-test/suite/multi_source/change_master.test
Normal file
@@ -0,0 +1,13 @@
|
||||
--source include/not_embedded.inc
|
||||
|
||||
RESET MASTER;
|
||||
|
||||
--connect (slave,127.0.0.1,root,,,$SERVER_MYPORT_3)
|
||||
|
||||
--error ER_RELAY_LOG_INIT
|
||||
change master 'abc1' to relay_log_file='';
|
||||
--error ER_RELAY_LOG_INIT
|
||||
change master 'abc1' to relay_log_file='';
|
||||
--disconnect slave
|
||||
--connection default
|
||||
|
||||
Reference in New Issue
Block a user