From 7f357cf23839747fb57b253a37914975ee9cdec6 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 6 Jan 2011 11:49:56 -0800 Subject: [PATCH] mds: force dirfrag fragmention when replaying metablob We can have non-auth (and thus ambiguously fragmented) dirs in our cache. When those get replayed, adjust our fragmentation as needed. Signed-off-by: Sage Weil --- src/mds/journal.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mds/journal.cc b/src/mds/journal.cc index 3de3bebd5c2b2..65715549f4ed9 100644 --- a/src/mds/journal.cc +++ b/src/mds/journal.cc @@ -385,7 +385,7 @@ void EMetaBlob::replay(MDS *mds, LogSegment *logseg) dirlump &lump = lump_map[*lp]; // the dir - CDir *dir = mds->mdcache->get_dirfrag(*lp); + CDir *dir = mds->mdcache->get_force_dirfrag(*lp); if (!dir) { // hmm. do i have the inode? CInode *diri = mds->mdcache->get_inode((*lp).ino); -- 2.39.5