]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: fix CInode::pop_projected_snaprealm()
authorYan, Zheng <zyan@redhat.com>
Tue, 19 May 2015 07:28:09 +0000 (15:28 +0800)
committerYan, Zheng <zyan@redhat.com>
Mon, 1 Jun 2015 06:05:44 +0000 (14:05 +0800)
commit55063a9fdf0f0059af396caaab4ddc81192578ab
treed42d3c410efe114a6735ce5df3209cf47554c1f8
parent6ed6a68e62683aee1ae979bf3b1db7e599040a69
mds: fix CInode::pop_projected_snaprealm()

CInode::pop_projected_snaprealm() was called after calling
CDentry::pop_projected_linkage(). So get_parent_inode()->find_snaprealm()
is not past parent snaprealm. The fix is set snaprealm->open to 'false'
and let SnapRealm::_open_parents() open the new past parent.

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