MXS-1775 m_master is now a member variable of MonitorInstance

This commit is contained in:
Johan Wikman
2018-05-17 13:56:03 +03:00
parent 5aa30e8613
commit db30ea96f2
10 changed files with 11 additions and 18 deletions

View File

@ -2510,6 +2510,7 @@ MonitorInstance::MonitorInstance(MXS_MONITOR* pMonitor)
: m_monitor(pMonitor)
, m_shutdown(0)
, m_events(0)
, m_master(NULL)
, m_status(MXS_MONITOR_STOPPED)
, m_thread(0)
{
@ -2557,6 +2558,7 @@ bool MonitorInstance::start(const MXS_CONFIG_PARAMETER* pParams)
{
m_script = config_get_string(pParams, "script");
m_events = config_get_enum(pParams, "events", mxs_monitor_event_enum_values);
m_master = NULL;
configure(pParams);