]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: mark mgr reports and osd_failure as no_reply 21016/head
authorKefu Chai <kchai@redhat.com>
Tue, 27 Mar 2018 09:45:30 +0000 (17:45 +0800)
committerAbhishek Lekshmanan <abhishek@suse.com>
Thu, 29 Mar 2018 14:16:43 +0000 (16:16 +0200)
see also: #20517

Fixes: http://tracker.ceph.com/issues/22114
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 0daccfb4951471ab3f70ae87870f23e14357d9c8)

src/mon/MgrStatMonitor.cc
src/mon/OSDMonitor.cc

index 3ea5f30032a80a90c7ba1bde48715515490e13f0..b79884b7d3ac196ec5e187d660447de62d62a6bd 100644 (file)
@@ -236,6 +236,7 @@ bool MgrStatMonitor::prepare_update(MonOpRequestRef op)
 
 bool MgrStatMonitor::preprocess_report(MonOpRequestRef op)
 {
+  mon->no_reply(op);
   return false;
 }
 
index 5dddb72581a5884a71495cbea0bc3a43567dd02e..001ed5d11d7a0274863f7e384d2144abfc911251 100644 (file)
@@ -2178,6 +2178,7 @@ bool OSDMonitor::prepare_failure(MonOpRequestRef op)
       mon->clog->debug() << m->get_target() << " reported immediately failed by "
             << m->get_orig_source_inst();
       force_failure(target_osd, reporter);
+      mon->no_reply(op);
       return true;
     }
     mon->clog->debug() << m->get_target() << " reported failed by "