]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
client: check snap_caps in Incode::is_any_caps() 1770/head
authorYan, Zheng <zheng.z.yan@intel.com>
Mon, 5 May 2014 23:44:45 +0000 (07:44 +0800)
committerYan, Zheng <zheng.z.yan@intel.com>
Mon, 5 May 2014 23:46:12 +0000 (07:46 +0800)
Fixes: #8290
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
src/client/Inode.cc

index 2f6389d1451985e8810edc2edd29bc9bb7e90386..67ad34735ee58a2e9c3d7eec04f39fc9915b50a7 100644 (file)
@@ -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)