Skip to content

Commit

Permalink
Merge pull request #12006: hammer: mon: MonmapMonitor should return s…
Browse files Browse the repository at this point in the history
…uccess when MON will be removed

Reviewed-by: Nathan Cutler <ncutler@suse.com>
  • Loading branch information
smithfarm committed Nov 18, 2016
2 parents 7ee518e + 0ac7f2f commit 87f5c54
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mon/MonmapMonitor.cc
Expand Up @@ -373,6 +373,7 @@ bool MonmapMonitor::prepare_command(MMonCommand *m)
pending_map.remove(name);
pending_map.last_changed = ceph_clock_now(g_ceph_context);
ss << "removed mon." << name << " at " << addr << ", there are now " << pending_map.size() << " monitors" ;
err = 0;
getline(ss, rs);
// send reply immediately in case we get removed
mon->reply_command(m, 0, rs, get_last_committed());
Expand Down

0 comments on commit 87f5c54

Please sign in to comment.