]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw_cksum: upload->get_info() fails when !cksum (why?)
authorMatt Benjamin <mbenjamin@redhat.com>
Tue, 30 Apr 2024 19:27:28 +0000 (15:27 -0400)
committerMatt Benjamin <mbenjamin@redhat.com>
Wed, 3 Jul 2024 18:38:53 +0000 (14:38 -0400)
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/rgw/rgw_op.cc

index 94a780008faa4630db1284472640fa42fa8fbcd9..f56a9b347c9a5bab6a65b00c1bb9779efb27ca2c 100644 (file)
@@ -6543,12 +6543,14 @@ void RGWCompleteMultipart::execute(optional_yield y)
   rgw_placement_rule* dest_placement;
   op_ret = upload->get_info(this, s->yield, &dest_placement);
   if (op_ret < 0) {
-    /* XXX this fails inconsistently when !checksum */
+    /* XXX this fails consistently when !checksum */
     ldpp_dout(this, 0) <<
-      "ERROR: MultipartUpload::get_info() for placement failed "
+      "WARNING: MultipartUpload::get_info() for placement failed "
                       << "ret=" << op_ret << dendl;
-    op_ret =  -ERR_INTERNAL_ERROR;
-    return;
+    if (upload->cksum_type != rgw::cksum::Type::none) {
+      op_ret =  -ERR_INTERNAL_ERROR;
+      return;
+    }
   }
 
   RGWCompressionInfo cs_info;