Commit b95714e1 authored by jonas@eel.(none)'s avatar jonas@eel.(none)

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
parent 1d548703
......@@ -239,11 +239,8 @@ 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))
goto end;
if(!setup_hosts(g_config))
goto end;
if (!start(g_config, p_ndb | p_servers))
goto end;
......@@ -1070,14 +1067,14 @@ 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());
if(r1 != 0)
{
g_logger.critical("Failed to gather result!");
return false;
}
}
g_logger.debug("system(%s)", tmp.c_str());
const int r1 = system(tmp.c_str());
if(r1 != 0)
{
g_logger.critical("Failed to gather result!");
return false;
}
g_logger.debug("system(%s)", g_analyze_progname);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment