]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: make sure rename old inode's parent dirfrag is projected.
authorYan, Zheng <zyan@redhat.com>
Thu, 7 May 2020 02:33:12 +0000 (10:33 +0800)
committerYan, Zheng <zyan@redhat.com>
Wed, 29 Jul 2020 12:45:57 +0000 (20:45 +0800)
commit414a5f6f4c98d245e3ff287a9d931c5e107fba47
tree9558e5f8a5c106cb2c74a8284ed2216692180f05
parente4732810bc5878c0df4dad74b3fa0871b962e45c
mds: make sure rename old inode's parent dirfrag is projected.

if rename dest dentry is remote dentry, Server::_rename_prepare() only
pre dirty old inode, but does not project fnode for old inode's parent
dirfrag. This will trigger a assertion (introduced by previous commit)
in CDir::mark_dirty().

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