From: chencan Date: Sat, 17 Oct 2020 07:26:51 +0000 (+0800) Subject: mon/MDSMonitor: do not ignore mds's down:dne request X-Git-Tag: v15.2.8~5^2~1^2~14^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F37858%2Fhead;p=ceph.git mon/MDSMonitor: do not ignore mds's down:dne request Fixes: https://tracker.ceph.com/issues/47881 Signed-off-by: chencan (cherry picked from commit 768d7fc4e8b74c88ea2a623ee4d21ac1f20d8c7a) --- diff --git a/src/mon/MDSMonitor.cc b/src/mon/MDSMonitor.cc index e60c06d46a49..657eeb00d836 100644 --- a/src/mon/MDSMonitor.cc +++ b/src/mon/MDSMonitor.cc @@ -393,6 +393,10 @@ bool MDSMonitor::preprocess_beacon(MonOpRequestRef op) dout(10) << __func__ << ": GID exists in map: " << gid << dendl; info = fsmap.get_info_gid(gid); + if (state == MDSMap::STATE_DNE) { + return false; + } + // old seq? if (info.state_seq > seq) { dout(7) << "mds_beacon " << *m << " has old seq, ignoring" << dendl;