]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: open+pin stray dirfrags on startup
authorSage Weil <sage@newdream.net>
Mon, 22 Aug 2011 20:58:39 +0000 (13:58 -0700)
committerSage Weil <sage@newdream.net>
Mon, 22 Aug 2011 20:58:39 +0000 (13:58 -0700)
commit3d85872a0fa50dc61de852814bf0f3d6b5b61cb6
tree790a3497954b710900d741afee3915b4f8071263
parent3f134257e29dfc4478b6992b33905a02f0b01c66
mds: open+pin stray dirfrags on startup

This ensures that the stray dirfrags are always open, which in turn ensures
that whenever we add straydn items the rstats/fragstats will get updated
properly.  This is a better solution than d3d767a.

Now we can assert the stray dirfrag is open in
get_or_create_stray_dentry() instead of calling get_or_open_dirfrag().

Signed-off-by: Sage Weil <sage@newdream.net>
src/mds/MDCache.cc