]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: skip prefetch first chunk if range get falls to shadow objects 5258/head
authorYuan Zhou <yuan.zhou@intel.com>
Thu, 16 Jul 2015 08:18:09 +0000 (16:18 +0800)
committerYuan Zhou <yuan.zhou@intel.com>
Fri, 31 Jul 2015 00:42:00 +0000 (08:42 +0800)
commit95745550ce4d201870ce12b871e608cc6c891d6e
tree64e00aa280181b7b3bd64fafd3e6e996178e4b9e
parent1113eb6b98cb8224f8c3e407435923de7415ca3f
rgw: skip prefetch first chunk if range get falls to shadow objects

Currently the head object will be prefetched in each GET:
 a) This is unnecessary if the Range GET falls to shadow objects.
 b) The GET request would be quite slow if we have a big head object
This patch adds some check on the Range. If it's not in the head
object(>=rgw_max_chunk_size) then skip the prefetch.

Fixes: #12539
Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
src/rgw/rgw_op.cc
src/rgw/rgw_op.h