From: Tianshan Qu Date: Thu, 3 Aug 2017 03:26:08 +0000 (+0800) Subject: rgw: should not restrict location_constraint same when user not provide X-Git-Tag: v12.1.3~49^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fc8f35e60db69104db4b1c796efb9d27f26c627a;p=ceph.git rgw: should not restrict location_constraint same when user not provide Signed-off-by: Tianshan Qu --- diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc index 72a4ec86fe2..df2cb14430d 100644 --- a/src/rgw/rgw_op.cc +++ b/src/rgw/rgw_op.cc @@ -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 << ")"