From: yuliyang_yewu Date: Fri, 24 Jul 2020 00:57:31 +0000 (+0800) Subject: rgw: fix md5 not match for RGWBulkUploadOp upload when enable rgw compression X-Git-Tag: v17.1.0~1384^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3fc487d25e81ca2135729b120b9c832b42a26266;p=ceph.git rgw: fix md5 not match for RGWBulkUploadOp upload when enable rgw compression Fixes: https://tracker.ceph.com/issues/46625 Signed-off-by: yuliyang_yewu --- diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc index efc8606d212..7d9a48234fd 100644 --- a/src/rgw/rgw_op.cc +++ b/src/rgw/rgw_op.cc @@ -7215,7 +7215,7 @@ int RGWBulkUploadOp::handle_file(const std::string_view path, ceph::bufferlist tmp; RGWCompressionInfo cs_info; cs_info.compression_type = plugin->get_type_name(); - cs_info.orig_size = s->obj_size; + cs_info.orig_size = size; cs_info.compressor_message = compressor->get_compressor_message(); cs_info.blocks = std::move(compressor->get_compression_blocks()); encode(cs_info, tmp);