From b444e88650c5608282b95ddfe46601c4b84873ce Mon Sep 17 00:00:00 2001 From: "Yan, Zheng" Date: Wed, 19 Mar 2014 16:20:21 +0800 Subject: [PATCH] mds: fix typo in MDCache::handle_cache_rejoin_strong It should invent dirfrags according to the dirfragtree Signed-off-by: Yan, Zheng --- src/mds/MDCache.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc index 3415ad19b1d6d..2d82d12dcadf8 100644 --- a/src/mds/MDCache.cc +++ b/src/mds/MDCache.cc @@ -4440,7 +4440,7 @@ void MDCache::handle_cache_rejoin_strong(MMDSCacheRejoin *strong) for (list::iterator q = ls.begin(); q != ls.end(); ++q) { CDir *dir = diri->get_dirfrag(*q); if (!dir) - dir = rejoin_invent_dirfrag(p->first); + dir = rejoin_invent_dirfrag(dirfrag_t(diri->ino(), *q)); else dout(10) << " have(approx) " << *dir << dendl; dir->add_replica(from, p->second.nonce); -- 2.39.5