]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: journal original dirfrags for rollback
authorYan, Zheng <zheng.z.yan@intel.com>
Thu, 19 Sep 2013 05:05:59 +0000 (13:05 +0800)
committerYan, Zheng <zheng.z.yan@intel.com>
Sat, 5 Oct 2013 03:31:09 +0000 (11:31 +0800)
commita881c1d36ceb705a89e7d157e56bb94d4624af97
tree966c54031dd131487a5cac8d8fe39a2eeab359be
parent4634d3ce2d14a31d7e0a27985e5b0eac51c84d22
mds: journal original dirfrags for rollback

Fragments with different 'bits' can be merged into one fragment. So we can't
use 'basefrag' and 'bits' to calculate the original fragments when rolling
back a merge operation.

We also can't rely on MDCache::adjust_dir_fragments() to restore the original
fragments' statistics during rolling back. This is because fragments are not
always complete in the rollback case.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
src/mds/MDCache.cc
src/mds/MDCache.h
src/mds/events/EFragment.h
src/mds/journal.cc