]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: pop projected snaprealm before inode's parent changes
authorYan, Zheng <zyan@redhat.com>
Tue, 19 Sep 2017 02:40:56 +0000 (10:40 +0800)
committerYan, Zheng <zyan@redhat.com>
Fri, 9 Feb 2018 10:41:28 +0000 (18:41 +0800)
commit7b8c844c3b22a9823f4692b836504c84fab25d84
tree78a32bdd78e1baf2dfaf989304ca4290c95760fd
parent2d60956c8befab3b0b468c9d25c2a3bac96d3d7a
mds: pop projected snaprealm before inode's parent changes

When creating new snaprealm, we need to split its parent snaprealm's
inodes_with_caps. If new snaprealm is newly created during rename,
inode's original snaprealm's inodes_with_caps should be split. So in
rename/rmdir cases, we should pop projectd snaprealm before inode's
parent changes

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