]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
placement target is added in GetBucketLocation api response in header `x-rgw-bucket...
authorsajibreadd <sajibreadd@gmail.com>
Tue, 30 Apr 2024 09:35:08 +0000 (11:35 +0200)
committersajibreadd <sajibreadd@gmail.com>
Tue, 30 Apr 2024 09:35:08 +0000 (11:35 +0200)
Fixes: https://tracker.ceph.com/issues/61887
Signed-off-by: Md Mahamudur Rahaman Sajib <mahamudur.sajib@croit.io>
src/rgw/rgw_rest_s3.cc

index a9a6c3699d0d2e54c74e1d33a44b99d9f21ed986..8533e00f27828b98df862170678044ec2bb3b438 100644 (file)
@@ -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);