From: sajibreadd Date: Tue, 30 Apr 2024 09:35:08 +0000 (+0200) Subject: placement target is added in GetBucketLocation api response in header `x-rgw-bucket... X-Git-Tag: v20.0.0~1891^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1b636ecc233666cf4bd0b492f6802c7e0b0a6bf7;p=ceph.git 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 --- 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);