MXS-1845 Complete server promotion code
Now copies slave connections from the previous master. Promotion code taken into use.
This commit is contained in:
@ -37,6 +37,7 @@ ClusterOperation::ClusterOperation(OperationType type,
|
||||
MariaDBServer* promotion_target, MariaDBServer* demotion_target,
|
||||
bool demo_target_is_master, bool handle_events,
|
||||
string& promotion_sql_file, string& demotion_sql_file,
|
||||
string& replication_user, string& replication_password,
|
||||
json_t** error, maxbase::Duration time_remaining)
|
||||
: type(type)
|
||||
, promotion_target(promotion_target)
|
||||
@ -45,6 +46,8 @@ ClusterOperation::ClusterOperation(OperationType type,
|
||||
, handle_events(handle_events)
|
||||
, promotion_sql_file(promotion_sql_file)
|
||||
, demotion_sql_file(demotion_sql_file)
|
||||
, replication_user(replication_user)
|
||||
, replication_password(replication_password)
|
||||
, error_out(error)
|
||||
, time_remaining(time_remaining)
|
||||
{}
|
||||
|
Reference in New Issue
Block a user