]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.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>
Thu, 29 Feb 2024 16:39:38 +0000 (11:39 -0500)
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/rgw/driver/rados/rgw_sal_rados.cc

index f46b1eaa97da945ca5a29228fb8b2dd0a835de9d..e04e25842e2b4c136a37793ce221d15b5e00d7a9 100644 (file)
@@ -2574,7 +2574,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);