You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-11-05 04:50:35 +03:00
fixed issue - shared-nonthing pm outage was calling the move dbroot commands
This commit is contained in:
@@ -55,6 +55,7 @@ extern bool HDFS;
|
||||
extern string localHostName;
|
||||
extern string PMwithUM;
|
||||
extern string AmazonPMFailover;
|
||||
extern string DBRootStorageType;
|
||||
|
||||
typedef map<string, int> moduleList;
|
||||
extern moduleList moduleInfoList;
|
||||
@@ -8442,14 +8443,6 @@ int ProcessManager::switchParentOAMModule(std::string newActiveModuleName)
|
||||
|
||||
log.writeLog(__LINE__, "switchParentOAMModule Function Started", LOG_TYPE_DEBUG);
|
||||
|
||||
string DBRootStorageType = "internal";
|
||||
{
|
||||
try{
|
||||
oam.getSystemConfig("DBRootStorageType", DBRootStorageType);
|
||||
}
|
||||
catch(...) {}
|
||||
}
|
||||
|
||||
if ( DBRootStorageType == "internal" && GlusterConfig == "n") {
|
||||
log.writeLog(__LINE__, "ERROR: DBRootStorageType = internal", LOG_TYPE_ERROR);
|
||||
pthread_mutex_unlock(&THREAD_LOCK);
|
||||
@@ -8735,15 +8728,6 @@ int ProcessManager::OAMParentModuleChange()
|
||||
log.writeLog(__LINE__, "EXCEPTION ERROR on getSystemConfig: Caught unknown exception!", LOG_TYPE_ERROR);
|
||||
}
|
||||
|
||||
// dbroot storage type, do different failover if internal
|
||||
string DBRootStorageType = "internal";
|
||||
{
|
||||
try{
|
||||
oam.getSystemConfig("DBRootStorageType", DBRootStorageType);
|
||||
}
|
||||
catch(...) {}
|
||||
}
|
||||
|
||||
string cmdLine = "ping ";
|
||||
string cmdOption = " -c 1 -w 5 >> /dev/null";
|
||||
string cmd;
|
||||
|
||||
Reference in New Issue
Block a user