]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: don't wait for snapclient sync when handling reconnect 25536/head
authorYan, Zheng <zyan@redhat.com>
Fri, 14 Dec 2018 07:34:57 +0000 (15:34 +0800)
committerYan, Zheng <zyan@redhat.com>
Fri, 14 Dec 2018 07:34:57 +0000 (15:34 +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>
src/mds/Server.cc

index 5b398b682d2ff818b1e979f22534fd355559c191..966207f86da4f79c2112fe1fd3d26719266671fc 100644 (file)
@@ -1230,13 +1230,6 @@ void Server::handle_client_reconnect(const MClientReconnect::const_ref &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
   auto reply = MClientSession::create(CEPH_SESSION_OPEN);
   if (session->info.has_feature(CEPHFS_FEATURE_MIMIC))