]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix md5 not match for RGWBulkUploadOp upload when enable rgw compression 45432/head
authoryuliyang_yewu <yuliyang_yewu@cmss.chinamobile.com>
Fri, 24 Jul 2020 00:57:31 +0000 (08:57 +0800)
committerCory Snyder <csnyder@iland.com>
Wed, 16 Mar 2022 16:43:18 +0000 (12:43 -0400)
Fixes: https://tracker.ceph.com/issues/46625
Signed-off-by: yuliyang_yewu <yuliyang_yewu@cmss.chinamobile.com>
(cherry picked from commit 3fc487d25e81ca2135729b120b9c832b42a26266)

src/rgw/rgw_op.cc

index f022bc376f9319d55ce834b59f36ceab0269a216..fa040f55e675737400778d50882daef81004d40f 100644 (file)
@@ -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);