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: v16.2.8~106^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=21f2baf45a4c7d329971e0e7fed05c33fe7a885f;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 (cherry picked from commit 3fc487d25e81ca2135729b120b9c832b42a26266) --- diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc index f022bc376f931..fa040f55e6757 100644 --- a/src/rgw/rgw_op.cc +++ b/src/rgw/rgw_op.cc @@ -7519,7 +7519,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);