]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw: Do not update mtime in `set_attrs`
authorSoumya Koduri <skoduri@redhat.com>
Sat, 24 Jun 2023 06:55:46 +0000 (12:25 +0530)
committerSoumya Koduri <skoduri@redhat.com>
Wed, 28 Jun 2023 07:41:26 +0000 (13:11 +0530)
commit31666d71aa5b58a9384938ba31892d48f2ac3f67
tree59aadadfb565c0b4b611d44d2e7b8c173a60cafb
parent2767f5a72c3662eda5df1c4ba6f2e005078cfdd6
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>
src/rgw/driver/rados/rgw_rados.cc