From 05f1752dd05b5f1483f2f1fa3db453cf01a401a3 Mon Sep 17 00:00:00 2001 From: david hill Date: Tue, 5 Jun 2018 15:47:38 -0500 Subject: [PATCH] MCOL-1405 - fix launch of mysql monitor thread on seperate module install --- procmon/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/procmon/main.cpp b/procmon/main.cpp index 2f98bc1e7..b4e23a6e1 100644 --- a/procmon/main.cpp +++ b/procmon/main.cpp @@ -696,10 +696,10 @@ int main(int argc, char **argv) log.writeLog(__LINE__, "pthread_create failed, return code = " + oam.itoa(ret), LOG_TYPE_ERROR); //mysqld status monitor thread - if ( ( config.ServerInstallType() == oam::INSTALL_COMBINE_DM_UM_PM ) || - (PMwithUM == "y") ) + if ( config.moduleType() == "um" || + ( config.moduleType() == "pm" && config.ServerInstallType() == oam::INSTALL_COMBINE_DM_UM_PM ) || + ( config.moduleType() == "pm" && PMwithUM == "y") ) { - pthread_t mysqlThread; ret = pthread_create (&mysqlThread, NULL, (void*(*)(void*)) &mysqlMonitorThread, NULL); if ( ret != 0 )