MXS-2344 Add setting for enabling SSL for replication
If the monitor setting "replication_master_ssl" is set to on, any CHANGE MASTER TO-command will have MASTER_SSL=1. If set to off or unset, MASTER_SSL is left unchanged to match existing behaviour.
This commit is contained in:
@ -224,11 +224,12 @@ class GeneralOpData
|
||||
public:
|
||||
const std::string replication_user; // User for CHANGE MASTER TO ...
|
||||
const std::string replication_password; // Password for CHANGE MASTER TO ...
|
||||
const bool replication_ssl; // MASTER_SSL=1 in CHANGE MASTER TO ...
|
||||
json_t** const error_out; // Json error output
|
||||
maxbase::Duration time_remaining; // How much time remains to complete the operation
|
||||
|
||||
GeneralOpData(const std::string& replication_user, const std::string& replication_password,
|
||||
json_t** error, maxbase::Duration time_remaining);
|
||||
bool replication_ssl, json_t** error, maxbase::Duration time_remaining);
|
||||
};
|
||||
|
||||
// Operation data which concerns a single server
|
||||
|
Reference in New Issue
Block a user