MXS-2271 Move some initializers out of monitor_create()

This commit is contained in:
Esa Korhonen
2019-01-17 15:49:44 +02:00
parent 40f58ddec8
commit dd16a09342
5 changed files with 44 additions and 55 deletions

View File

@ -561,7 +561,7 @@ bool validate_param(const MXS_MODULE_PARAM* basic,
bool do_alter_monitor(MXS_MONITOR* monitor, const char* key, const char* value)
{
mxb_assert(monitor->state == MONITOR_STATE_STOPPED);
const MXS_MODULE* mod = get_module(monitor->module_name, MODULE_MONITOR);
const MXS_MODULE* mod = get_module(monitor->module_name.c_str(), MODULE_MONITOR);
if (!validate_param(config_monitor_params, mod->parameters, key, value))
{