summaryrefslogtreecommitdiff
path: root/sql/rpl_mi.h
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2021-08-24 00:38:30 +0300
committerMonty <monty@mariadb.org>2021-09-14 13:43:50 +0300
commit4ebaa80f0b26de814e8de27b8ea2188038b7d0f2 (patch)
tree9d5ed6903bdb6e1f8f67ef20af81eec2d3566e23 /sql/rpl_mi.h
parent0629711db43ec489a360d8f689b72fac66a2470b (diff)
downloadmariadb-git-4ebaa80f0b26de814e8de27b8ea2188038b7d0f2.tar.gz
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()
Diffstat (limited to 'sql/rpl_mi.h')
-rw-r--r--sql/rpl_mi.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/rpl_mi.h b/sql/rpl_mi.h
index 0d6e959838f..d2232ac2664 100644
--- a/sql/rpl_mi.h
+++ b/sql/rpl_mi.h
@@ -385,7 +385,7 @@ public:
bool check_duplicate_master_info(LEX_CSTRING *connection_name,
const char *host, uint port);
bool add_master_info(Master_info *mi, bool write_to_file);
- bool remove_master_info(Master_info *mi);
+ bool remove_master_info(Master_info *mi, bool clear_log_files);
Master_info *get_master_info(const LEX_CSTRING *connection_name,
Sql_condition::enum_warning_level warning);
bool start_all_slaves(THD *thd);