]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: properly update capability's client_follow
authorYan, Zheng <zyan@redhat.com>
Thu, 16 Apr 2015 08:34:25 +0000 (16:34 +0800)
committerYan, Zheng <zyan@redhat.com>
Tue, 21 Apr 2015 05:56:17 +0000 (13:56 +0800)
commitd08d834d53ea1a0470177897e21b2c11ba9d796e
treea6b994cf686943b01f9bcc40ed76a218b1afe3a2
parentc9fe13fddcc8ca6587150d23366a6a5defcafe6d
mds: properly update capability's client_follow

If snap inode exists, capability's client_follow has already been
updated by MDCache::cow_inode(). So we only update client_follow
when the inode was not COWed.

Besides, we need to check return of SnapRealm::get_snap_following().
It can return CEPH_NOSNAP, which is clearly invalid for client_follows.

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