From: Daniel Gryniewicz Date: Thu, 25 May 2023 18:09:54 +0000 (-0400) Subject: RGW - Use correct multipart upload mtime X-Git-Tag: v18.1.1~30^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F51833%2Fhead;p=ceph.git RGW - Use correct multipart upload mtime 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 (cherry picked from commit 45d4352ad2bf020ab75d8047809ea5e11cbe1c8d) --- diff --git a/src/rgw/driver/rados/rgw_sal_rados.cc b/src/rgw/driver/rados/rgw_sal_rados.cc index ef9941df94c68..1ba21c5ecba72 100644 --- a/src/rgw/driver/rados/rgw_sal_rados.cc +++ b/src/rgw/driver/rados/rgw_sal_rados.cc @@ -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) {