Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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()
- Loading branch information
Showing
6 changed files
with
46 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters