]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
Fix failing > 4MB range requests through radosgw S3 API. 66/head
authorJan Harkes <jaharkes@cs.cmu.edu>
Thu, 21 Feb 2013 20:17:38 +0000 (15:17 -0500)
committerJan Harkes <jaharkes@cs.cmu.edu>
Thu, 21 Feb 2013 20:29:11 +0000 (15:29 -0500)
commitc83a01d4e8dcd26eec24c020c5b79fcfa4ae44a3
tree6f39a0223240fed773d62ff8fc989fb545817e6b
parent4277265d99647c9fe950ba627e5d86234cfd70a9
Fix failing > 4MB range requests through radosgw S3 API.

When a range request is made for more than rgw_get_obj_max_req_size
bytes the first returned chunk sets 'ret' to STATUS_PARTIAL_CONTENT and
all remaining chunks behave as if there is an error state and only
return a minimal header.

Fix this by passing STATUS_PARTIAL_CONTENT to set_req_state_err, but
leave the 'ret' member variable untouched.

Signed-off-by: Jan Harkes <jaharkes@cs.cmu.edu>
src/rgw/rgw_rest_s3.cc