]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw: fix SLO/DLO range requests
authorlu.shasha <lu.shasha@eisoo.com>
Fri, 12 May 2017 02:03:02 +0000 (10:03 +0800)
committerlu.shasha <lu.shasha@eisoo.com>
Wed, 21 Jun 2017 01:28:24 +0000 (09:28 +0800)
commit9eec1b4ef953d9fda70b75500701506b4c00b593
treeb25e1c755d25c7f8dc76e1c9567105b45ac8472d
parent8e4665dbae79b4df40ecc99dce140bc8ee58f724
rgw: fix SLO/DLO range requests

Sending any SLO/DLO range requests will retrun InvalidRange error. SLO/DLO should call range_to_ofs after got object size instead of read_op.prepare() to deal with negative offsets.

Signed-off-by: Shasha Lu <lu.shasha@eisoo.com>
src/rgw/rgw_op.cc