1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

add more checks around the getsystems

This commit is contained in:
David Hill
2016-12-05 22:35:01 +00:00
parent 857e1f9d69
commit 9283635460
8 changed files with 47 additions and 27 deletions

View File

@ -2597,7 +2597,7 @@ pid_t ProcessMonitor::startProcess(string processModuleType, string processName,
//Update Process Status: Mark Process INIT state
updateProcessInfo(processName, FAILED, newProcessID);
exit(oam::API_FAILURE);
return (oam::API_FAILURE);
}
return newProcessID;
@ -2812,6 +2812,11 @@ void sendProcessThread(sendProcessInfo_t* t)
try {
oam.setProcessStatus(processName, config.moduleName(), state, PID);
}
catch (exception& ex)
{
string error = ex.what();
log.writeLog(__LINE__, "EXCEPTION ERROR on setProcessStatus: " + error, LOG_TYPE_ERROR);
}
catch(...)
{
log.writeLog(__LINE__, "EXCEPTION ERROR on setProcessStatus: Caught unknown exception!", LOG_TYPE_ERROR );