]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: don't overwrite target attrs checking mpu info
authorMatt Benjamin <mbenjamin@redhat.com>
Wed, 13 Dec 2023 18:53:46 +0000 (13:53 -0500)
committerCasey Bodley <cbodley@redhat.com>
Fri, 1 Mar 2024 17:25:09 +0000 (12:25 -0500)
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit 97445bb6ea24275de5eb050b55207cad237c81f8)

src/rgw/driver/rados/rgw_sal_rados.cc

index b1f1ce8f7ed5128d9ffd38e0d50bb12ae829ea66..9b71334309e826f0e2b38c25d8e2bec9e0d6aaba 100644 (file)
@@ -2573,7 +2573,9 @@ int RadosMultipartUpload::complete(const DoutPrefixProvider *dpp,
 
   rgw_placement_rule* ru;
   ru = &placement;
-  ret = RadosMultipartUpload::get_info(dpp, y, &ru, &attrs);
+  rgw::sal::Attrs mpu_attrs; // don't overwrite the target object attrs we are updating
+  ret = RadosMultipartUpload::get_info(dpp, y, &ru, &mpu_attrs);
+
   if (upload_information.obj_retention_exist) {
     bufferlist obj_retention_bl;
     upload_information.obj_retention.encode(obj_retention_bl);