]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: fix rfile/rsubdirs accounting vs linkunlink
authorSage Weil <sage@newdream.net>
Fri, 24 Oct 2008 23:47:19 +0000 (16:47 -0700)
committerSage Weil <sage@newdream.net>
Fri, 24 Oct 2008 23:47:19 +0000 (16:47 -0700)
src/mds/CDir.cc
src/mds/MDCache.cc

index a97c1ba99a332476d7d66ca3ac3ec02c0f876649..2c699d5fb173f392fdf59bad8c360cb2612312a1 100644 (file)
@@ -145,7 +145,7 @@ CDir::CDir(CInode *in, frag_t fg, MDCache *mdcache, bool auth) :
   frag = fg;
   this->cache = mdcache;
 
-  first = 1;
+  first = 2;
   
   num_head_items = num_head_null = 0;
   num_snap_items = num_snap_null = 0;
index ef53596ca5081e09f62ccf8c2c6be086d74a900a..e55fe97ca95fb3c05a75c76d83a68f8f9163dfe3 100644 (file)
@@ -1423,10 +1423,10 @@ void MDCache::predirty_journal_parents(Mutation *mut, EMetaBlob *blob,
        dout(10) << "predirty_journal_parents updating size on " << *parent << dendl;
        if (in->is_dir()) {
          pf->fragstat.nsubdirs += linkunlink;
-         pf->rstat.rsubdirs += linkunlink;
+         //pf->rstat.rsubdirs += linkunlink;
        } else {
          pf->fragstat.nfiles += linkunlink;
-         pf->rstat.rfiles += linkunlink;
+         //pf->rstat.rfiles += linkunlink;
        }
       }
     }