MXS-2920: Allow max_slave_replication_lag=0
A requirement of no lag should be allowed. The reason why it wasn't was simply due to the selection of the default value.
This commit is contained in:
@ -502,7 +502,12 @@ extern "C" MXS_MODULE* MXS_CREATE_MODULE()
|
||||
MXS_MODULE_OPT_NONE,
|
||||
master_failure_mode_values
|
||||
},
|
||||
{"max_slave_replication_lag", MXS_MODULE_PARAM_DURATION, "0s", MXS_MODULE_OPT_DURATION_S},
|
||||
{
|
||||
"max_slave_replication_lag",
|
||||
MXS_MODULE_PARAM_DURATION,
|
||||
DEFAULT_MAX_SLAVE_REPLICATION_LAG_STR,
|
||||
MXS_MODULE_OPT_DURATION_S
|
||||
},
|
||||
{"max_slave_connections", MXS_MODULE_PARAM_STRING, MAX_SLAVE_COUNT},
|
||||
{"retry_failed_reads", MXS_MODULE_PARAM_BOOL, "true"},
|
||||
{"prune_sescmd_history", MXS_MODULE_PARAM_BOOL, "false"},
|
||||
|
Reference in New Issue
Block a user