1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

MCOL-4347: catch exceptions at init and shutdown SM

This commit is contained in:
benthompson15
2020-10-13 18:08:25 -05:00
parent d56e2453d6
commit ac258dc94d

View File

@ -77,11 +77,25 @@ void coreSM(int sig)
int main(int argc, char** argv)
{
SMLogging* logger = SMLogging::get();
IOCoordinator* ioc = NULL;
Cache* cache = NULL;
Synchronizer* sync = NULL;
Replicator* rep = NULL;
/* Instantiate objects to have them verify config settings before continuing */
IOCoordinator* ioc = IOCoordinator::get();
Cache* cache = Cache::get();
Synchronizer* sync = Synchronizer::get();
Replicator* rep = Replicator::get();
try
{
ioc = IOCoordinator::get();
cache = Cache::get();
sync = Synchronizer::get();
rep = Replicator::get();
}
catch (exception &e)
{
logger->log(LOG_INFO, "StorageManager init FAIL: %s", e.what());
return -1;
}
struct sigaction sa;
memset(&sa, 0, sizeof(sa));
@ -112,8 +126,6 @@ int main(int argc, char** argv)
int ret = 0;
SMLogging* logger = SMLogging::get();
logger->log(LOG_NOTICE,"StorageManager started.");
SessionManager* sm = SessionManager::get();