]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
RGW - Use correct multipart upload mtime 51833/head
authorDaniel Gryniewicz <dang@redhat.com>
Thu, 25 May 2023 18:09:54 +0000 (14:09 -0400)
committerDaniel Gryniewicz <dang@redhat.com>
Tue, 30 May 2023 12:56:49 +0000 (08:56 -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>
(cherry picked from commit 45d4352ad2bf020ab75d8047809ea5e11cbe1c8d)

src/rgw/driver/rados/rgw_sal_rados.cc

index ef9941df94c6884a00a47987e1e3329f538e508d..1ba21c5ecba72883aad0352a40768e9f7797df30 100644 (file)
@@ -962,7 +962,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) {