diff --git a/storage/ndb/src/ndbapi/ClusterMgr.cpp b/storage/ndb/src/ndbapi/ClusterMgr.cpp index b108ed3fd41..63fdb73c49f 100644 --- a/storage/ndb/src/ndbapi/ClusterMgr.cpp +++ b/storage/ndb/src/ndbapi/ClusterMgr.cpp @@ -38,6 +38,7 @@ #include int global_flag_send_heartbeat_now= 0; +int global_flag_skip_invalidate_cache = 0; // Just a C wrapper for threadMain extern "C" @@ -458,11 +459,14 @@ ClusterMgr::reportNodeFailed(NodeId nodeId){ theNode.nfCompleteRep = false; if(noOfAliveNodes == 0) { - theFacade.m_globalDictCache.lock(); - theFacade.m_globalDictCache.invalidate_all(); - theFacade.m_globalDictCache.unlock(); - m_connect_count ++; - m_cluster_state = CS_waiting_for_clean_cache; + if (!global_flag_skip_invalidate_cache) + { + theFacade.m_globalDictCache.lock(); + theFacade.m_globalDictCache.invalidate_all(); + theFacade.m_globalDictCache.unlock(); + m_connect_count ++; + m_cluster_state = CS_waiting_for_clean_cache; + } NFCompleteRep rep; for(Uint32 i = 1; i