From 412a8961cd2eccc80aabdbeb58839b21a579542f Mon Sep 17 00:00:00 2001 From: "Yan, Zheng" Date: Fri, 14 Dec 2018 15:34:57 +0800 Subject: [PATCH] mds: don't wait for snapclient sync when handling reconnect It's no longer required since commit 93e72677575 "mds: send snap related messages centrally during mds recovery". Signed-off-by: "Yan, Zheng" (cherry picked from commit 0565fb3e646a9c133b621dd6ed4f26bed9a9edbc) --- src/mds/Server.cc | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/mds/Server.cc b/src/mds/Server.cc index 3691ac501e8..a96a647faba 100644 --- a/src/mds/Server.cc +++ b/src/mds/Server.cc @@ -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)) -- 2.47.3