]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: MonmapMonitor: return success when monitor will be removed 12006/head
authorJoao Eduardo Luis <joao@suse.de>
Wed, 2 Nov 2016 15:33:52 +0000 (15:33 +0000)
committerNathan Cutler <ncutler@suse.com>
Tue, 15 Nov 2016 21:38:36 +0000 (22:38 +0100)
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)

src/mon/MonmapMonitor.cc

index c6b21cb47fc7c7d56bee38252d3b78eee5aa03fa..05d744244bd0b9d665d3b73c96ac7e534d1b1797 100644 (file)
@@ -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());