Merge pull request #36213 from joke-lee/BulkUpload_md5

rgw: fix md5 not match for RGWBulkUploadOp upload when enable rgw com…

Reviewed-by: Casey Bodley <cbodley@redhat.com>
This commit is contained in:
Casey Bodley 2021-07-15 14:19:51 -04:00 committed by GitHub
commit 84be9581dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7496,7 +7496,7 @@ int RGWBulkUploadOp::handle_file(const std::string_view path,
ceph::bufferlist tmp; ceph::bufferlist tmp;
RGWCompressionInfo cs_info; RGWCompressionInfo cs_info;
cs_info.compression_type = plugin->get_type_name(); 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.compressor_message = compressor->get_compressor_message();
cs_info.blocks = std::move(compressor->get_compression_blocks()); cs_info.blocks = std::move(compressor->get_compression_blocks());
encode(cs_info, tmp); encode(cs_info, tmp);