Commit 0887c3bc authored by unknown's avatar unknown
Browse files

ndb - new atrt

    Fix bug when restarting cluster after failure
      (fs was not cleared)
    Fix cosmetic bug that made rsync be run several times when gathering result


storage/ndb/test/run-test/main.cpp:
  Fix bug when restarting cluster after failure
    (fs was not cleared)
  Fix cosmetic bug that made rsync be run several times when gathering result
parent 9197d6b8
Loading
Loading
Loading
Loading
+10 −13
Original line number Diff line number Diff line
@@ -239,10 +239,7 @@ main(int argc, char ** argv)
      if(!stop_processes(g_config, ~0))
	goto end;
      
      if (!setup_directories(g_config, 2))
	goto end;
      
      if (!setup_files(g_config, 2, 1))
      if(!setup_hosts(g_config))
        goto end;
      
      if (!start(g_config, p_ndb | p_servers))
@@ -1070,6 +1067,7 @@ gather_result(atrt_config& config, int * result){
    tmp.appfmt(" %s:%s/*", 
	       config.m_hosts[i]->m_hostname.c_str(),
	       config.m_hosts[i]->m_basedir.c_str());
  }

  g_logger.debug("system(%s)", tmp.c_str());
  const int r1 = system(tmp.c_str());
@@ -1078,7 +1076,6 @@ gather_result(atrt_config& config, int * result){
    g_logger.critical("Failed to gather result!");
    return false;
  }
  }
  
  g_logger.debug("system(%s)", g_analyze_progname);
  const int r2 = system(g_analyze_progname);