1
0
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:
Monty
2021-08-24 00:38:30 +03:00
parent 0629711db4
commit 4ebaa80f0b
6 changed files with 46 additions and 4 deletions

View 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;

View 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