]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: get wrong content when download object with specific range when 16178/head
authorfang.yuxiang <fang.yuxiang@eisoo.com>
Sat, 27 May 2017 07:20:30 +0000 (15:20 +0800)
committerNathan Cutler <ncutler@suse.com>
Thu, 6 Jul 2017 17:16:24 +0000 (19:16 +0200)
commit640a7a26296e652ffb8b8bfab87839d7bfd66d1b
treec45d6685893262b0c22d7af116276c982ff84a84
parente12eae92b04d30d322740a6c7a33d86e448bf9c5
rgw: get wrong content when download object with specific range when
compression was enabled

look at the prototype:
RGWGetObj_Decompress::handle_data(bufferlist& bl, off_t bl_ofs, off_t bl_len)
we should trim the bl using bl_ofs and bl_len.

Fixes: http://tracker.ceph.com/issues/20100
Signed-off-by: fang yuxiang <fang.yuxiang@eisoo.com>
(cherry picked from commit afe9d99570059b88837690950a4f4525e0e60262)
src/rgw/rgw_compression.cc
src/test/rgw/test_rgw_compression.cc