From fc8f35e60db69104db4b1c796efb9d27f26c627a Mon Sep 17 00:00:00 2001 From: Tianshan Qu Date: Thu, 3 Aug 2017 11:26:08 +0800 Subject: [PATCH] rgw: should not restrict location_constraint same when user not provide Signed-off-by: Tianshan Qu --- src/rgw/rgw_op.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc index 72a4ec86fe28c..df2cb14430d3f 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 << ")"