Check failover applicability to the cluster every turn

This should give an advance warning if a user tries to activate auto_failover
on a cluster which does not support it.
This commit is contained in:
Esa Korhonen
2018-07-18 18:40:04 +03:00
parent 862ae099b0
commit c9570ff616
4 changed files with 88 additions and 39 deletions

View File

@ -238,7 +238,7 @@ private:
// Failover methods
bool manual_failover(json_t** output);
void handle_auto_failover();
bool failover_not_possible();
bool cluster_supports_failover(std::string* reasons_out);
bool slave_receiving_events();
bool failover_check(std::string* error_out);
bool do_failover(json_t** err_out);