]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: use 'is in stray' instead 'nlink == 0' to check deleted inodes
authorYan, Zheng <zyan@redhat.com>
Fri, 14 Apr 2017 01:28:10 +0000 (09:28 +0800)
committerYan, Zheng <zyan@redhat.com>
Thu, 11 May 2017 06:13:24 +0000 (14:13 +0800)
commit00fdbd89c0a44ee965615ed3992ed3801506baa9
tree11dae9ed62b51b644695056dcdc623b40727a164
parent233fb368784814b3aaa2867969741dc931178e45
mds: use 'is in stray' instead 'nlink == 0' to check deleted inodes

Checking inode's nlink is not reliable when mds is not auth mds of
the inode.

This patch also removes the code that skips committing dirfrag of
deleted inode. it's not safe for uncommitted slave rmmdir.

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