]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: Do not update mtime in `set_attrs` 51806/head
authorSoumya Koduri <skoduri@redhat.com>
Sat, 24 Jun 2023 06:55:46 +0000 (12:25 +0530)
committerSoumya Koduri <skoduri@redhat.com>
Fri, 21 Jun 2024 18:04:47 +0000 (23:34 +0530)
commit118458ec6458b2ff7bff1a404a18a16a04c40916
tree6dec8755c2935b52798d4be4b9218717e86bb13c
parentd7e9708132fce16b7269643647f41cf7780e2a3c
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/rgw_rados.cc