You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
Added _exit in Child dmlproc service
This commit is contained in:
@ -684,10 +684,8 @@ int ServiceDMLProc::Child()
|
||||
|
||||
setupChildSignalHandlers();
|
||||
|
||||
dmlserver.start();
|
||||
_exit(dmlserver.start());
|
||||
|
||||
// WIP the rc looks misguiding b/c DMLProc now can legitimately quits from DMLServer::start()
|
||||
// so Child() should return dmlserver.start().
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -1213,7 +1213,7 @@ DMLServer::DMLServer(int packageMaxThreads, int packageWorkQueueSize, DBRM* dbrm
|
||||
fDmlPackagepool.setName("DmlPackagepool");
|
||||
}
|
||||
|
||||
void DMLServer::start()
|
||||
int DMLServer::start()
|
||||
{
|
||||
messageqcpp::IOSocket ios;
|
||||
uint32_t nextID = 1;
|
||||
@ -1246,6 +1246,7 @@ void DMLServer::start()
|
||||
}
|
||||
|
||||
cancelThread.join();
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
catch (std::exception& ex)
|
||||
{
|
||||
@ -1258,6 +1259,7 @@ void DMLServer::start()
|
||||
message.format(args);
|
||||
logging::Logger logger(lid.fSubsysID);
|
||||
logger.logMessage(logging::LOG_TYPE_CRITICAL, message, lid);
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
@ -1269,6 +1271,7 @@ void DMLServer::start()
|
||||
message.format(args);
|
||||
logging::Logger logger(lid.fSubsysID);
|
||||
logger.logMessage(logging::LOG_TYPE_CRITICAL, message, lid);
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -112,7 +112,7 @@ public:
|
||||
~DMLServer() { }
|
||||
|
||||
|
||||
void start(); //Does not return
|
||||
int start();
|
||||
|
||||
/** @brief get the dml package thread pool size
|
||||
*/
|
||||
|
Reference in New Issue
Block a user