MXS-1775 MonitorInstance now calls mysql_thread_[init|finish]()

This commit is contained in:
Johan Wikman
2018-05-16 14:29:44 +03:00
parent 15e3a2887c
commit 6db4ce54a9
6 changed files with 16 additions and 39 deletions

View File

@ -458,11 +458,6 @@ void GaleraMonitor::main()
int log_no_members = 1;
master_stickiness = m_disableMasterFailback;
if (mysql_thread_init())
{
MXS_ERROR("mysql_thread_init failed in monitor module. Exiting.");
return;
}
load_server_journal(m_monitor, NULL);
@ -470,7 +465,6 @@ void GaleraMonitor::main()
{
if (m_shutdown)
{
mysql_thread_end();
return;
}