]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: should not restrict location_constraint same when user not provide 16770/head
authorTianshan Qu <tianshan@xsky.com>
Thu, 3 Aug 2017 03:26:08 +0000 (11:26 +0800)
committerTianshan Qu <tianshan@xsky.com>
Thu, 3 Aug 2017 03:26:08 +0000 (11:26 +0800)
Signed-off-by: Tianshan Qu <tianshan@xsky.com>
src/rgw/rgw_op.cc

index 72a4ec86fe28cdb889e6f6409486a4e8cddc3e45..df2cb14430d3f06bf9b020619d137c315c3581e5 100644 (file)
@@ -2523,7 +2523,7 @@ void RGWCreateBucket::execute()
       return;
   }
 
-  if (!store->get_zonegroup().is_master_zonegroup() &&
+  if (!store->get_zonegroup().is_master_zonegroup() && !location_constraint.empty() &&
       store->get_zonegroup().api_name != location_constraint) {
     ldout(s->cct, 0) << "location constraint (" << location_constraint << ")"
                      << " doesn't match zonegroup" << " (" << store->get_zonegroup().api_name << ")"