MXS-1944 Store switchover parameters in an object

This commit is contained in:
Esa Korhonen
2018-09-24 15:53:34 +03:00
parent c20a17238b
commit bfb1c3f1b3
2 changed files with 49 additions and 85 deletions

View File

@ -234,15 +234,9 @@ private:
void check_cluster_operations_support();
// Switchover methods
bool switchover_prepare(SERVER* new_master,
SERVER* current_master,
Log log_mode,
MariaDBServer** promotion_target_out,
MariaDBServer** demotion_target_out,
json_t** error_out);
bool switchover_perform(MariaDBServer* promotion_target,
MariaDBServer* demotion_target,
json_t** error_out);
std::unique_ptr<ClusterOperation> switchover_prepare(SERVER* new_master, SERVER* current_master,
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,