From 71fa779e08ec08768a558e812aeecd02aa26b4eb Mon Sep 17 00:00:00 2001 From: "Yan, Zheng" Date: Mon, 24 Mar 2014 16:47:04 +0800 Subject: [PATCH] mds: don't clear scatter dirty when cache rejoin ack is received The auth mds has received dirty scatterlock state. But it hasn't journaled the dirty state yet. The log segment that marked the scatterlock dirty need to be preserved. Therefore, we can't clear the dirty flag of scatterlock. Signed-off-by: Yan, Zheng --- src/mds/MDCache.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc index 4b48465d612b0..d61ba48403cec 100644 --- a/src/mds/MDCache.cc +++ b/src/mds/MDCache.cc @@ -4819,8 +4819,6 @@ void MDCache::handle_cache_rejoin_ack(MMDSCacheRejoin *ack) assert(in); bufferlist::iterator q = basebl.begin(); in->_decode_base(q); - // auth will send a full inode for any inode it got scatterlock state for. - in->clear_scatter_dirty(); dout(10) << " got inode base " << *in << dendl; } -- 2.39.5