Commit 6aa63d18 authored by unknown's avatar unknown
Browse files

ndb - testframework

  impl. ugly flag to skip dict cache invalidation as it break all testSystemRestart testcases


storage/ndb/src/ndbapi/ClusterMgr.cpp:
  impl. ugly flag to skip dict cache invalidation as it break all testSystemRestart testcases
storage/ndb/test/src/NDBT_Test.cpp:
  impl. ugly flag to skip dict cache invalidation as it break all testSystemRestart testcases
parent 8b48a8e8
Loading
Loading
Loading
Loading
+9 −5
Original line number Diff line number Diff line
@@ -38,6 +38,7 @@
#include <mgmapi_config_parameters.h>

int global_flag_send_heartbeat_now= 0;
int global_flag_skip_invalidate_cache = 0;

// Just a C wrapper for threadMain
extern "C" 
@@ -457,12 +458,15 @@ ClusterMgr::reportNodeFailed(NodeId nodeId){
  
  theNode.nfCompleteRep = false;
  if(noOfAliveNodes == 0)
  {
    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<MAX_NODES; i++){
      if(theNodes[i].defined && theNodes[i].nfCompleteRep == false){
+4 −0
Original line number Diff line number Diff line
@@ -1149,6 +1149,8 @@ static struct my_option my_long_options[] =
  { 0, 0, 0, 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0}
};

extern int global_flag_skip_invalidate_cache;

static void usage()
{
  ndb_std_print_version();
@@ -1237,6 +1239,8 @@ int NDBT_TestSuite::execute(int argc, const char** argv){
  srand(opt_seed);
  srandom(opt_seed);

  global_flag_skip_invalidate_cache = 1;
  
  {
    Ndb ndb(&con, "TEST_DB");
    ndb.init(1024);