]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: Disable prefetch of entire head object when GET request with range header 38556/head
authorOr Friedmann <ofriedma@redhat.com>
Sun, 8 Mar 2020 13:34:48 +0000 (15:34 +0200)
committerNathan Cutler <ncutler@suse.com>
Sun, 13 Dec 2020 10:32:06 +0000 (11:32 +0100)
commit64077272bc3daa71da9a79985c83f28a38612ba6
tree8d4fc8d718359a6fef476541ba46d48e72cb94dd
parent7148b7c3ae254fbc7796ae63d86ea681c68e0d88
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>
(cherry picked from commit 2be5af0006169cb54547034aa98b7eacb8751d59)
src/rgw/rgw_op.cc