Improve switchover undo when new master fails

Now the monitor properly restores the old master by running promotion code on it.
Also, binlog is disabled when enabling server events.
This commit is contained in:
Esa Korhonen
2019-06-07 17:26:17 +03:00
parent 53606934a6
commit d0e6921604
5 changed files with 93 additions and 107 deletions

View File

@ -336,8 +336,7 @@ private:
const MariaDBServer* demotion_target,
ServerArray* redirected_to_promo,
ServerArray* redirected_to_demo);
bool start_external_replication(MariaDBServer* new_master, json_t** err_out);
std::string generate_change_master_cmd(const std::string& master_host, int master_port);
void wait_cluster_stabilization(GeneralOpData& op, const ServerArray& slaves,
const MariaDBServer* new_master);