]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/MDSMonitor: do not ignore mds's down:dne request 37858/head
authorchencan <chen.can2@zte.com.cn>
Sat, 17 Oct 2020 07:26:51 +0000 (15:26 +0800)
committerNathan Cutler <ncutler@suse.com>
Tue, 27 Oct 2020 09:41:55 +0000 (10:41 +0100)
Fixes: https://tracker.ceph.com/issues/47881
Signed-off-by: chencan <chen.can2@zte.com.cn>
(cherry picked from commit 768d7fc4e8b74c88ea2a623ee4d21ac1f20d8c7a)

src/mon/MDSMonitor.cc

index e60c06d46a49b55975dc1a86196d31783d96c120..657eeb00d836120e2465a01c757ced5add68e7f8 100644 (file)
@@ -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;