MXS-1845 Switchover cleanup

Several small changes:
Binlog is flushed at the end of old master demotion.
Only new master is required to catch up to old master.
Use the same replication check method as failover.
This commit is contained in:
Esa Korhonen
2018-10-02 17:42:03 +03:00
parent 49e85d9a28
commit 30eb21914f
4 changed files with 106 additions and 147 deletions

View File

@ -234,10 +234,6 @@ private:
Log log_mode, json_t** error_out);
bool switchover_perform(ClusterOperation& operation);
bool switchover_demote_master(MariaDBServer* current_master, json_t** err_out);
bool switchover_wait_slaves_catchup(const ServerArray& slaves,
const GtidList& gtid,
int total_timeout,
json_t** err_out);
bool switchover_start_slave(MariaDBServer* old_master, MariaDBServer* new_master);
bool manual_switchover(SERVER* new_master, SERVER* current_master, json_t** error_out);
void handle_low_disk_space_master();