From: Sage Weil Date: Thu, 13 Mar 2014 22:17:55 +0000 (-0700) Subject: mds: fix empty fs rstat X-Git-Tag: v0.79~155 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=a72b636ba4027f0c0e8008f0552772000f6bb1e4;p=ceph.git mds: fix empty fs rstat In 81bcf43080a7be8a48aa13b88287cbfac0e01e3e we removed the .ceph directory but did not adjust the rsubdirs back to 0. Fixes: #7565 Signed-off-by: Sage Weil --- diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc index 6acf027099f63..28930cd9119b1 100644 --- a/src/mds/MDCache.cc +++ b/src/mds/MDCache.cc @@ -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;