]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: note subtree bounds when rolling back rename
authorYan, Zheng <zyan@redhat.com>
Thu, 9 Feb 2017 03:43:57 +0000 (11:43 +0800)
committerYan, Zheng <zyan@redhat.com>
Mon, 20 Feb 2017 08:12:36 +0000 (16:12 +0800)
commitf25f054cc8f79f4e9900a43b63846a2479c115d9
tree74b55a941d3e98bcccc298189e32422d12f1cf37
parent246cead0f25ea78fb93d14bb6c32d6bd119536bb
mds: note subtree bounds when rolling back rename

mds can do a slave rename that moves directory inode (whoes dirfrags
are all non-auth) to new auth. Then rolls back the slave rename. If
There is a ESubtreeMap event between log event of slave rename and
log event of rollback. The ESubtreeMap does not have information
about the inode's non-auth dirfrags.

Later when mds replays the log, the log event of slave rename can
be missing. So mds need to re-create subtree bounds when replaying
the log event of rename rollback

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
src/mds/Server.cc