]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mon: mark manager beacons as no_reply
authorGreg Farnum <gfarnum@redhat.com>
Fri, 16 Feb 2018 23:44:22 +0000 (15:44 -0800)
committerGreg Farnum <gfarnum@redhat.com>
Mon, 19 Feb 2018 17:32:13 +0000 (09:32 -0800)
We never reply to manager beacons, and we have to mark them
that way or else forwarded messages pile up pending replies
and things eventually block.

Fixes: http://tracker.ceph.com/issues/22114
Reported-by: Hongpeng Lu <ludehp@163.com>
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
src/mon/MgrMonitor.cc

index 76985abc04332cc8070a2af1fc018713dbb59a69..b9d79c3cf47bd7a09b280587ed7e0d3cccd616bc 100644 (file)
@@ -267,6 +267,7 @@ public:
 bool MgrMonitor::preprocess_beacon(MonOpRequestRef op)
 {
   MMgrBeacon *m = static_cast<MMgrBeacon*>(op->get_req());
+  mon->no_reply(op); // we never reply to beacons
   dout(4) << "beacon from " << m->get_gid() << dendl;
 
   if (!check_caps(op, m->get_fsid())) {