From 1b636ecc233666cf4bd0b492f6802c7e0b0a6bf7 Mon Sep 17 00:00:00 2001 From: sajibreadd Date: Tue, 30 Apr 2024 11:35:08 +0200 Subject: [PATCH] placement target is added in GetBucketLocation api response in header `x-rgw-bucket-placement-target` Fixes: https://tracker.ceph.com/issues/61887 Signed-off-by: Md Mahamudur Rahaman Sajib --- src/rgw/rgw_rest_s3.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rgw/rgw_rest_s3.cc b/src/rgw/rgw_rest_s3.cc index a9a6c3699d0..8533e00f278 100644 --- a/src/rgw/rgw_rest_s3.cc +++ b/src/rgw/rgw_rest_s3.cc @@ -2097,6 +2097,8 @@ void RGWGetBucketLogging_ObjStore_S3::send_response() void RGWGetBucketLocation_ObjStore_S3::send_response() { dump_errno(s); + dump_header(s, "x-rgw-bucket-placement-target", + s->bucket->get_info().placement_rule.name); end_header(s, this); dump_start(s); -- 2.47.3