]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw/s3: RGWGetObj still sets attrs on ReadOp error 55094/head
authorCasey Bodley <cbodley@redhat.com>
Tue, 21 Nov 2023 03:48:55 +0000 (22:48 -0500)
committerCasey Bodley <cbodley@redhat.com>
Mon, 8 Jan 2024 19:16:01 +0000 (14:16 -0500)
commit715c100794827a84ffb37c3b689615034f94bd22
tree902ee067be1c155794bf9193afe7e67bde3e7ac3
parentd5f0eab18e4053a3ce319edac63ced74fac9d2f5
rgw/s3: RGWGetObj still sets attrs on ReadOp error

when `ReadOp::prepare()` fails with `-ERR_NOT_MODIFIED`, it succeeded in
reading the head object for mtime and attrs like etag. make those attrs
available to RGWGetObj so we can still send ETag and other cache-related
response headers

Fixes: https://tracker.ceph.com/issues/45736
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit ccd241c565aa898231e4bfa4ea313c3406b55391)

Conflicts:
src/rgw/rgw_op.cc no multipart get part
src/rgw/rgw_op.cc