From 79aa26ffbae055086b88ccd0844d09266757cd24 Mon Sep 17 00:00:00 2001 From: "Yan, Zheng" Date: Wed, 26 Mar 2014 18:55:19 +0800 Subject: [PATCH] mds: allow sending MMDSFindIno to MDS who is in clientreplay state Because MDCache::kick_find_ino_peers() is called when a MDS enters clientreplay state. Signed-off-by: Yan, Zheng --- src/mds/MDCache.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc index e68b49b99d795..f972f44e6e3fa 100644 --- a/src/mds/MDCache.cc +++ b/src/mds/MDCache.cc @@ -8735,8 +8735,7 @@ void MDCache::_do_find_ino_peer(find_ino_peer_info_t& fip) { set all, active; mds->mdsmap->get_mds_set(all); - mds->mdsmap->get_active_mds_set(active); - mds->mdsmap->get_mds_set(active, MDSMap::STATE_STOPPING); + mds->mdsmap->get_clientreplay_or_active_or_stopping_mds_set(active); dout(10) << "_do_find_ino_peer " << fip.tid << " " << fip.ino << " active " << active << " all " << all -- 2.39.5