]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: Disable prefetch of entire head object when GET request with range header 33807/head
authorOr Friedmann <ofriedma@redhat.com>
Sun, 8 Mar 2020 13:34:48 +0000 (15:34 +0200)
committerOr Friedmann <ofriedma@redhat.com>
Thu, 19 Mar 2020 14:58:09 +0000 (16:58 +0200)
commit2be5af0006169cb54547034aa98b7eacb8751d59
treebfa9c97aeea90717d12551bf526dd1ad5e949267
parente66b91129925dc2bfeb5d8ad68a542307023cea0
rgw: Disable prefetch of entire head object when GET request with range header

Disable prefetch of entire head object when GET request with range header.
The current behavior for the RGW is getting the whole object although the client asked only for a small bytes offset.
For example: If the client asked for bytes=0-1, The RGW will anyway fetch 0-4194304

Fixes: https://tracker.ceph.com/issues/44508
Signed-off-by: Or Friedmann <ofriedma@redhat.com>
src/rgw/rgw_op.cc