From: Yan, Zheng Date: Mon, 5 May 2014 23:44:45 +0000 (+0800) Subject: client: check snap_caps in Incode::is_any_caps() X-Git-Tag: v0.81~67^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1770%2Fhead;p=ceph.git client: check snap_caps in Incode::is_any_caps() Fixes: #8290 Signed-off-by: Yan, Zheng --- diff --git a/src/client/Inode.cc b/src/client/Inode.cc index 2f6389d1451..67ad34735ee 100644 --- a/src/client/Inode.cc +++ b/src/client/Inode.cc @@ -137,7 +137,7 @@ int Inode::put_cap_ref(int cap) bool Inode::is_any_caps() { - return caps.size(); + return !caps.empty() || snap_caps; } bool Inode::cap_is_valid(Cap* cap)