Fixes: http://tracker.ceph.com/issues/17725
Signed-off-by: Joao Eduardo Luis <joao@suse.de>
(cherry picked from commit
c9d46cfbf2512bc3495c6901de2b8f711bef9bae)
Conflicts:
src/mon/MonmapMonitor.cc (just inserted the "err = 0" assignment
immediately after the error message line)
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());