MXS-2304 Remove remaining uses of config_get_string() from module code

The function returns a pointer to an internal string and should not be
used.
This commit is contained in:
Esa Korhonen
2019-02-04 16:07:09 +02:00
parent 5ab7734e9d
commit 78d9ef2910
7 changed files with 22 additions and 40 deletions

View File

@ -223,7 +223,7 @@ RWSplit* RWSplit::create(SERVICE* service, MXS_CONFIG_PARAMETER* params)
Config config(params);
if (!handle_max_slaves(config, config_get_string(params, "max_slave_connections")))
if (!handle_max_slaves(config, params->get_string("max_slave_connections").c_str()))
{
return NULL;
}
@ -447,7 +447,7 @@ bool RWSplit::configure(MXS_CONFIG_PARAMETER* params)
bool rval = false;
Config cnf(params);
if (handle_max_slaves(cnf, config_get_string(params, "max_slave_connections")))
if (handle_max_slaves(cnf, params->get_string("max_slave_connections").c_str()))
{
m_config.assign(cnf);
rval = true;