]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: don't wait for snapclient sync when handling reconnect 25785/head
authorYan, Zheng <zyan@redhat.com>
Fri, 14 Dec 2018 07:34:57 +0000 (15:34 +0800)
committerYan, Zheng <zyan@redhat.com>
Sat, 2 Feb 2019 04:00:22 +0000 (12:00 +0800)
It's no longer required since commit 93e72677575 "mds: send snap
related messages centrally during mds recovery".

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
(cherry picked from commit 0565fb3e646a9c133b621dd6ed4f26bed9a9edbc)

src/mds/Server.cc

index 3691ac501e82866eb8160eec7382475754ce0dc1..a96a647faba5f54977618bd85f2aeef824aba987 100644 (file)
@@ -1075,13 +1075,6 @@ void Server::handle_client_reconnect(MClientReconnect *m)
     return;
   }
 
-  // opening snaprealm past parents needs to use snaptable
-  if (!mds->snapclient->is_synced()) {
-    dout(10) << " snaptable isn't synced, waiting" << dendl;
-    mds->snapclient->wait_for_sync(new C_MDS_RetryMessage(mds, m));
-    return;
-  }
-
   // notify client of success with an OPEN
   MClientSession *reply = new MClientSession(CEPH_SESSION_OPEN);
   if (session->info.has_feature(CEPHFS_FEATURE_MIMIC))