From 58a77b708cb0306892cbfd7a1be3b72246a0dbf6 Mon Sep 17 00:00:00 2001 From: david hill Date: Mon, 23 Oct 2017 14:50:43 -0500 Subject: [PATCH] MCOL-938 --- procmon/processmonitor.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/procmon/processmonitor.cpp b/procmon/processmonitor.cpp index 2d5b49356..cbef5f9ce 100644 --- a/procmon/processmonitor.cpp +++ b/procmon/processmonitor.cpp @@ -4659,7 +4659,7 @@ int ProcessMonitor::changeMyCnf(std::string type) string dbDir = startup::StartUp::installDir() + "/mysql/db"; - if ( type == "master" ) +/* if ( type == "master" ) { // set master replication entries vector lines; @@ -4699,10 +4699,10 @@ int ProcessMonitor::changeMyCnf(std::string type) close(fd); } - - if ( type == "slave" ) - { - //get slave id based on ExeMgrx setup +*/ +// if ( type == "slave" ) +// { + //get server-id based on ExeMgrx setup string slaveID = "0"; string slaveModuleName = config.moduleName(); for ( int id = 1 ; ; id++ ) @@ -4755,7 +4755,6 @@ int ProcessMonitor::changeMyCnf(std::string type) return oam::API_FAILURE; } - // set slave replication entries vector lines; char line[200]; @@ -4804,7 +4803,7 @@ int ProcessMonitor::changeMyCnf(std::string type) newFile.close(); close(fd); - } +// } /* if ( type == "disable" ) {