From 2c814bd3edc0dbbcfae2e60f1096b4c324dcd45a Mon Sep 17 00:00:00 2001 From: David Hall Date: Fri, 24 Jan 2020 12:33:03 -0600 Subject: [PATCH] MCOL-3744 mcssystemready to work with SKIP_OAM_INIT --- dbcon/mysql/ha_mcs_client_udfs.cpp | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/dbcon/mysql/ha_mcs_client_udfs.cpp b/dbcon/mysql/ha_mcs_client_udfs.cpp index 51ce2917f..8395b364b 100644 --- a/dbcon/mysql/ha_mcs_client_udfs.cpp +++ b/dbcon/mysql/ha_mcs_client_udfs.cpp @@ -294,13 +294,24 @@ extern "C" try { - oam.getSystemStatus(systemstatus); - - if (systemstatus.SystemOpState == ACTIVE - && dbrm.getSystemReady() - && dbrm.getSystemQueryReady()) + if (getenv("SKIP_OAM_INIT")) { - return 1; + if (dbrm.getSystemReady() + && dbrm.getSystemQueryReady()) + { + return 1; + } + } + else + { + oam.getSystemStatus(systemstatus); + + if (systemstatus.SystemOpState == ACTIVE + && dbrm.getSystemReady() + && dbrm.getSystemQueryReady()) + { + return 1; + } } } catch (...)