]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: MonmapMonitor: return success when monitor will be removed
authorJoao Eduardo Luis <joao@suse.de>
Wed, 2 Nov 2016 15:33:52 +0000 (15:33 +0000)
committerLoic Dachary <ldachary@redhat.com>
Thu, 1 Dec 2016 21:45:24 +0000 (22:45 +0100)
Fixes: http://tracker.ceph.com/issues/17725
Signed-off-by: Joao Eduardo Luis <joao@suse.de>
(cherry picked from commit c9d46cfbf2512bc3495c6901de2b8f711bef9bae)

src/mon/MonmapMonitor.cc

index 1ff6e06b88bddcaff4193147449b96e103903c58..294d0369bbd320d7bde065fd608a9bd5f3045401 100644 (file)
@@ -465,6 +465,7 @@ bool MonmapMonitor::prepare_command(MonOpRequestRef op)
     ss << "removing mon." << name << " at " << addr
        << ", there will be " << pending_map.size() << " monitors" ;
     propose = true;
+    err = 0;
     goto reply;
 
   } else {