]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ReplicatedPG: return no data if read size is trimmed to zero 1251/head
authorYan, Zheng <zheng.z.yan@intel.com>
Sun, 16 Feb 2014 14:14:50 +0000 (22:14 +0800)
committerYan, Zheng <zheng.z.yan@intel.com>
Sun, 16 Feb 2014 14:36:09 +0000 (22:36 +0800)
commit1dae27c50538c066a7f22702838100baf243904b
tree189661ba577aec3d354ad9cd3c0256a711e91cd2
parentdcb6d02c5287a3fc153caad9539ffb7038c62da2
ReplicatedPG: return no data if read size is trimmed to zero

OSD should return no data if the read size is trimmed to zero by the
truncate_seq/truncate_size check. We can't rely on ObjectStore::read()
to do that because it reads the entire object when the 'len' parameter
is zero.

Fixes: #7371
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
src/osd/ReplicatedPG.cc