]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: Do not update mtime in `set_attrs` 52329/head
authorSoumya Koduri <skoduri@redhat.com>
Sat, 24 Jun 2023 06:55:46 +0000 (12:25 +0530)
committerSoumya Koduri <skoduri@redhat.com>
Thu, 6 Jul 2023 06:21:28 +0000 (11:51 +0530)
commited87338afd0ed106ae7bec4523f4bf0ee6a701cd
treecbd8377764cb18cbeca0d1898b521ed627a21fce
parent256928885f925faf8d61172c286fc00aa5279c1c
rgw: Do not update mtime in `set_attrs`

As per https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingMetadata.html,
the only way for users to modify object metadata is to make a copy of the object and
set the metadata. Hence retain old mtime for any other attr changes

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
(cherry picked from commit 31666d71aa5b58a9384938ba31892d48f2ac3f67)
src/rgw/driver/rados/rgw_rados.cc