From d3ff9c63f2de61fb82919d83c1e46bda62d954c2 Mon Sep 17 00:00:00 2001 From: Matt Benjamin Date: Tue, 30 Apr 2024 15:27:28 -0400 Subject: [PATCH] rgw_cksum: upload->get_info() fails when !cksum (why?) Signed-off-by: Matt Benjamin --- src/rgw/rgw_op.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc index 94a780008faa4..f56a9b347c9a5 100644 --- a/src/rgw/rgw_op.cc +++ b/src/rgw/rgw_op.cc @@ -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; -- 2.39.5