]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
RGW - Use correct multipart upload mtime
authorDaniel Gryniewicz <dang@redhat.com>
Thu, 25 May 2023 18:09:54 +0000 (14:09 -0400)
committerDaniel Gryniewicz <dang@redhat.com>
Fri, 26 May 2023 16:39:43 +0000 (12:39 -0400)
During multipart listing, the mtime of the uploads were not being
loaded, resulting in the current time being returned.  Fix this by
setting the correct mtime.

Fixes: https://tracker.ceph.com/issues/61251
Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
src/rgw/driver/rados/rgw_sal_rados.cc

index 4ad65b99fc3b9870d39898f10baa213b35be79eb..750d191bdd632a95f3e5b3472cc23c40442fbc2c 100644 (file)
@@ -958,7 +958,7 @@ int RadosBucket::list_multiparts(const DoutPrefixProvider *dpp,
       ACLOwner owner(rgw_user(dentry.meta.owner));
       owner.set_name(dentry.meta.owner_display_name);
       uploads.push_back(this->get_multipart_upload(key.name,
-                       std::nullopt, std::move(owner)));
+                       std::nullopt, std::move(owner), dentry.meta.mtime));
     }
   }
   if (common_prefixes) {