Skip to content

Commit

Permalink
agents stop only when master sends the respective message
Browse files Browse the repository at this point in the history
  • Loading branch information
prekageo committed May 11, 2016
1 parent 22b9023 commit 0127b99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mutilate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1428,8 +1428,8 @@ void do_mutilate(const vector<string>& servers, options_t& options,
restart = scan_search_update(&stats);
}

if (args.agentmode_given && received_stop)
restart = false;
if (args.agentmode_given)
restart = !received_stop;

if (restart) continue;
else break;
Expand Down

0 comments on commit 0127b99

Please sign in to comment.