MXS-2271 Move some monitor management functions to an internal class
The class MonitorManager contains monitor-related functions that should not be called from modules. MonitorManager can access private fields and methods of the monitor.
This commit is contained in:
@ -3832,7 +3832,7 @@ int create_new_monitor(CONFIG_CONTEXT* obj, std::set<std::string>& monitored_ser
|
||||
return 1;
|
||||
}
|
||||
|
||||
MXS_MONITOR* monitor = monitor_create(obj->object, module, obj->parameters);
|
||||
MXS_MONITOR* monitor = MonitorManager::create_monitor(obj->object, module, obj->parameters);
|
||||
if (monitor == NULL)
|
||||
{
|
||||
MXS_ERROR("Failed to create monitor '%s'.", obj->object);
|
||||
|
||||
Reference in New Issue
Block a user