Different cluster operations use different parameter types
Only the parameters used by all operations are in the common class.
This commit is contained in:
@ -217,18 +217,15 @@ enum class OperationType
|
||||
FAILOVER
|
||||
};
|
||||
|
||||
class ServerOperation;
|
||||
class GeneralOpData
|
||||
{
|
||||
public:
|
||||
const OperationType type;
|
||||
const std::string replication_user; // User for CHANGE MASTER TO ...
|
||||
const std::string replication_password; // Password for CHANGE MASTER TO ...
|
||||
json_t** const error_out; // Json error output
|
||||
maxbase::Duration time_remaining; // How much time remains to complete the operation
|
||||
|
||||
GeneralOpData(OperationType type,
|
||||
const std::string& replication_user, const std::string& replication_password,
|
||||
GeneralOpData(const std::string& replication_user, const std::string& replication_password,
|
||||
json_t** error, maxbase::Duration time_remaining);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user