From: Sage Weil Date: Thu, 6 Jan 2011 19:49:56 +0000 (-0800) Subject: mds: force dirfrag fragmention when replaying metablob X-Git-Tag: v0.25~352 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7f357cf23839747fb57b253a37914975ee9cdec6;p=ceph.git 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 --- diff --git a/src/mds/journal.cc b/src/mds/journal.cc index 3de3bebd5c2b..65715549f4ed 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);