Add missing handling of max_slave_connections
The parameter accepts both counts and percentages which requires special handling in the router. This needs to be done when the configuration is updated.
This commit is contained in:
@ -435,8 +435,16 @@ uint64_t RWSplit::getCapabilities()
|
|||||||
|
|
||||||
bool RWSplit::configure(MXS_CONFIG_PARAMETER* params)
|
bool RWSplit::configure(MXS_CONFIG_PARAMETER* params)
|
||||||
{
|
{
|
||||||
m_config.reset(new Config(params));
|
bool rval = false;
|
||||||
return true;
|
SConfig cnf(new Config(params));
|
||||||
|
|
||||||
|
if (handle_max_slaves(cnf, config_get_string(params, "max_slave_connections")))
|
||||||
|
{
|
||||||
|
m_config = std::move(cnf);
|
||||||
|
rval = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return rval;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user