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)
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) {