]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: force dirfrag fragmention when replaying metablob
authorSage Weil <sage@newdream.net>
Thu, 6 Jan 2011 19:49:56 +0000 (11:49 -0800)
committerSage Weil <sage@newdream.net>
Fri, 7 Jan 2011 22:17:29 +0000 (14:17 -0800)
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 <sage@newdream.net>
src/mds/journal.cc

index 3de3bebd5c2b25fc423e8fe60967aefefa2e386b..65715549f4ed93c1ae4814458171539a32d5f3d6 100644 (file)
@@ -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);