Skip to content

Commit 1be4399

Browse files
committed
rgw_cksum: return version_id in all cases
The version_id member in RGWGetObjAttrs shadows the one in RGWGetObj. Just assign it before conditionally returning the version-id header in RGWGetObjAttrs_ObjStore_S3::send_response(). Signed-off-by: Matt Benjamin <[email protected]>
1 parent bac02fc commit 1be4399

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/rgw/rgw_rest_s3.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3865,6 +3865,8 @@ void RGWGetObjAttrs_ObjStore_S3::send_response()
38653865
dump_errno(s);
38663866

38673867
if (op_ret == 0) {
3868+
version_id = s->object->get_instance();
3869+
38683870
// x-amz-delete-marker: DeleteMarker // not sure we can plausibly do this?
38693871
dump_last_modified(s, lastmod);
38703872
dump_header_if_nonempty(s, "x-amz-version-id", version_id);

0 commit comments

Comments
 (0)