]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/MDSMonitor: do not ignore mds's down:dne request 37702/head
authorchencan <chen.can2@zte.com.cn>
Sat, 17 Oct 2020 07:26:51 +0000 (15:26 +0800)
committerchencan <chen.can2@zte.com.cn>
Tue, 20 Oct 2020 03:07:43 +0000 (11:07 +0800)
Fixes: https://tracker.ceph.com/issues/47881
Signed-off-by: chencan <chen.can2@zte.com.cn>
src/mon/MDSMonitor.cc

index f00460e684aaa3b8cff42ba341bcf136af4c3703..3224b51f1b10f99d943c47fce30d99dcfb9e9449 100644 (file)
@@ -419,6 +419,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;