]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: fix empty fs rstat
authorSage Weil <sage@inktank.com>
Thu, 13 Mar 2014 22:17:55 +0000 (15:17 -0700)
committerSage Weil <sage@inktank.com>
Thu, 13 Mar 2014 22:17:55 +0000 (15:17 -0700)
In 81bcf43080a7be8a48aa13b88287cbfac0e01e3e we removed the .ceph directory
but did not adjust the rsubdirs back to 0.

Fixes: #7565
Signed-off-by: Sage Weil <sage@inktank.com>
src/mds/MDCache.cc

index 6acf027099f63a6e50f578437310770b2e412a02..28930cd9119b157c659c4f7409a536c334712390 100644 (file)
@@ -344,7 +344,6 @@ void MDCache::create_empty_hierarchy(C_Gather *gather)
   adjust_subtree_auth(rootdir, mds->whoami);   
   rootdir->dir_rep = CDir::REP_ALL;   //NONE;
 
-  rootdir->fnode.fragstat.nsubdirs = 1;
   rootdir->fnode.accounted_fragstat = rootdir->fnode.fragstat;
   rootdir->fnode.accounted_rstat = rootdir->fnode.rstat;