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

Checkpointing some experimental changes to get storagemanager running.

This commit is contained in:
Patrick LeBlanc
2019-06-06 08:36:40 -05:00
parent 42b79bd5e7
commit 98c9cd7b22
6 changed files with 85 additions and 15 deletions

View File

@ -1014,7 +1014,13 @@ int main(int argc, char** argv)
(*listPtr).DepModuleName,
(*listPtr).LogFile,
initType);
if (listPtr->ProcessName == "StorageManager")
{
log.writeLog(__LINE__, "StorageManager WTF? 1", LOG_TYPE_DEBUG);
oam.setProcessStatus("StorageManager", boost::get<0>(oam.getModuleInfo()),
oam::ACTIVE, listPtr->processID);
}
string restartStatus;
if ( (*listPtr).processID == oam::API_MINOR_FAILURE ||
@ -1065,7 +1071,13 @@ int main(int argc, char** argv)
(*listPtr).DepModuleName,
(*listPtr).LogFile,
initType);
if (listPtr->ProcessName == "StorageManager")
{
log.writeLog(__LINE__, "StorageManager WTF? 2", LOG_TYPE_DEBUG);
oam.setProcessStatus("StorageManager", boost::get<0>(oam.getModuleInfo()),
oam::ACTIVE, listPtr->processID);
}
string restartStatus;
if ( (*listPtr).processID == oam::API_MINOR_FAILURE ||
@ -1652,7 +1664,13 @@ static void chldHandleThread(MonitorConfig config)
(*listPtr).DepModuleName,
(*listPtr).LogFile,
initStatus);
if (listPtr->ProcessName == "StorageManager")
{
log.writeLog(__LINE__, "StorageManager WTF? 3", LOG_TYPE_DEBUG);
oam.setProcessStatus("StorageManager", boost::get<0>(oam.getModuleInfo()),
oam::ACTIVE, listPtr->processID);
}
if ( (*listPtr).processID == oam::API_FAILURE )
{
// restart hard failure