MXS-1775 Move status management to MonitorInstance
This commit is contained in:
@ -463,16 +463,14 @@ void GaleraMonitor::main()
|
||||
MXS_ERROR("mysql_thread_init failed in monitor module. Exiting.");
|
||||
return;
|
||||
}
|
||||
m_status = MXS_MONITOR_RUNNING;
|
||||
|
||||
load_server_journal(m_monitor, NULL);
|
||||
|
||||
while (1)
|
||||
{
|
||||
if (m_shutdown)
|
||||
{
|
||||
m_status = MXS_MONITOR_STOPPING;
|
||||
mysql_thread_end();
|
||||
m_status = MXS_MONITOR_STOPPED;
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user