]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: preserve subtree bounds until slave commit
authorYan, Zheng <zheng.z.yan@intel.com>
Thu, 31 Jan 2013 02:37:11 +0000 (10:37 +0800)
committerYan, Zheng <zheng.z.yan@intel.com>
Sun, 31 Mar 2013 08:57:14 +0000 (16:57 +0800)
commit5cbaae66484aba703de57a3c85a8a4e76248286b
tree7767e529f75b57ea76903ee3d5ccd381fd35b895
parentce8793ce3bd8b816aa6083175d6dd1c614a71aae
mds: preserve subtree bounds until slave commit

When replaying an operation that rename a directory inode to non-auth subtree,
if the inode has subtree bounds, we should prevent them from being trimmed
until slave commit.

This patch also fixes a bug in ESlaveUpdate::replay(). EMetaBlob::replay()
should be called before MDCache::finish_uncommitted_slave_update().

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
src/mds/MDCache.cc
src/mds/Mutation.h
src/mds/journal.cc