1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-08 14:22:09 +03:00

MCOL-3744 mcssystemready to work with SKIP_OAM_INIT

This commit is contained in:
David Hall
2020-01-24 12:33:03 -06:00
parent 011cc70e17
commit 2c814bd3ed

View File

@@ -294,13 +294,24 @@ extern "C"
try try
{ {
oam.getSystemStatus(systemstatus); if (getenv("SKIP_OAM_INIT"))
if (systemstatus.SystemOpState == ACTIVE
&& dbrm.getSystemReady()
&& dbrm.getSystemQueryReady())
{ {
return 1; if (dbrm.getSystemReady()
&& dbrm.getSystemQueryReady())
{
return 1;
}
}
else
{
oam.getSystemStatus(systemstatus);
if (systemstatus.SystemOpState == ACTIVE
&& dbrm.getSystemReady()
&& dbrm.getSystemQueryReady())
{
return 1;
}
} }
} }
catch (...) catch (...)