MDEV-3984: Double free of Master_info * when CHANGE MASTER fails.
When CHANGE MASTER fails, it may or may not have already added the Master_info * to the index. Implement logic that properly handles removal and freeing in both cases.
This commit is contained in:
parent
6f2680a73c
commit
ea5632e9d7
5 changed files with 31 additions and 7 deletions
|
@ -41,7 +41,7 @@ extern my_bool opt_sporadic_binlog_dump_fail;
|
|||
|
||||
int start_slave(THD* thd, Master_info* mi, bool net_report);
|
||||
int stop_slave(THD* thd, Master_info* mi, bool net_report);
|
||||
bool change_master(THD* thd, Master_info* mi);
|
||||
bool change_master(THD* thd, Master_info* mi, bool *master_info_added);
|
||||
bool mysql_show_binlog_events(THD* thd);
|
||||
int reset_slave(THD *thd, Master_info* mi);
|
||||
int reset_master(THD* thd);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue