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:
		@ -1195,7 +1195,7 @@ bool runtime_create_monitor(const char* name, const char* module)
 | 
			
		||||
 | 
			
		||||
            if (ok)
 | 
			
		||||
            {
 | 
			
		||||
                if ((monitor = monitor_create(name, module, params)) == NULL)
 | 
			
		||||
                if ((monitor = MonitorManager::create_monitor(name, module, params)) == NULL)
 | 
			
		||||
                {
 | 
			
		||||
                    config_runtime_error("Could not create monitor '%s' with module '%s'", name, module);
 | 
			
		||||
                }
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user