]> 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)
committerAbhishek Varshney <abhishek.varshney@flipkart.com>
Tue, 15 Nov 2016 16:43:59 +0000 (22:13 +0530)
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 a38f3fe956919c45a141021dc37c03464bea64b3..a40f6c19a6982d95f6bc750f4e5569a8462fa243 100644 (file)
@@ -467,6 +467,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 {