From: Adam Kupczyk Date: Fri, 14 Oct 2016 10:09:20 +0000 (+0200) Subject: Fixed bad rebase on read_op.prepare() X-Git-Tag: v11.1.0~429^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fc8f9a15b6f9c45de7fc52e9e105decb8e836acf;p=ceph.git Fixed bad rebase on read_op.prepare() Signed-off-by: Adam Kupczyk --- diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc index 6796f6eb1fa3..f64a8f6ba200 100644 --- a/src/rgw/rgw_op.cc +++ b/src/rgw/rgw_op.cc @@ -2771,6 +2771,7 @@ int RGWPutObj::get_data(const off_t fst, const off_t lst, bufferlist& bl) RGWPutObj_CB cb(this); int ret = 0; + uint64_t obj_size; int64_t new_ofs, new_end; new_ofs = fst; @@ -2782,8 +2783,11 @@ int RGWPutObj::get_data(const off_t fst, const off_t lst, bufferlist& bl) RGWRados::Object op_target(store, copy_source_bucket_info, *static_cast(s->obj_ctx), obj); RGWRados::Object::Read read_op(&op_target); - - ret = read_op.prepare(&new_ofs, &new_end); + read_op.params.obj_size = &obj_size; + ret = read_op.prepare(); + if (ret < 0) + return ret; + ret = read_op.range_to_ofs(obj_size, new_ofs, new_end); if (ret < 0) return ret; @@ -2813,8 +2817,6 @@ void RGWPutObj::execute() off_t fst; off_t lst; - uint64_t bucket_size = 0; - RGWBucketCompressionInfo bucket_size; int res; bool compression_enabled; boost::optional compressor; @@ -3130,7 +3132,7 @@ int RGWPostObj::verify_permission() { return 0; } - +/* RGWPutObjProcessor *RGWPostObj::select_processor(RGWObjectCtx& obj_ctx) { RGWPutObjProcessor *processor; @@ -3146,7 +3148,7 @@ void RGWPostObj::dispose_processor(RGWPutObjDataProcessor *processor) { delete processor; } - +*/ void RGWPostObj::pre_exec() { rgw_bucket_object_pre_exec(s);