]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: use zonegroup id for location constrain
authorOrit Wasserman <owasserm@redhat.com>
Wed, 2 Dec 2015 09:47:47 +0000 (10:47 +0100)
committerYehuda Sadeh <yehuda@redhat.com>
Fri, 12 Feb 2016 00:13:39 +0000 (16:13 -0800)
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
src/rgw/rgw_rest_s3.cc

index b8399ed58d585b04f778967f28211c5bf6a96d65..aa4a1702f46ab2e3dc269029bda00ed2a0242dd6 100644 (file)
@@ -469,7 +469,7 @@ void RGWGetBucketLocation_ObjStore_S3::send_response()
   if (ret >= 0) {
     api_name = zonegroup.api_name;
   } else  {
-    if (api_name != "default") {
+    if (s->bucket_info.zonegroup != "default") {
       api_name = s->bucket_info.zonegroup;
     }
   }