summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYehuda Sadeh <yehuda@inktank.com>2013-07-22 13:36:30 -0700
committerGreg Farnum <greg@inktank.com>2013-07-22 14:25:04 -0700
commit1ecdb14937583d44273b8a2861379754f9c1c615 (patch)
treede254808fd782e5fae0ac329711a9f54f8304f1d
parent8a2eb18494005aa968b71f18121da8ebab48e950 (diff)
downloadceph-1ecdb14937583d44273b8a2861379754f9c1c615.tar.gz
rgw: swift, in create bucket set location_constraints
For swift we're setting the location constraint to be the current region we're in when creating a bucket. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com> Reviewed-by: Greg Farnum <greg@inktank.com>
-rw-r--r--src/rgw/rgw_rest_swift.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rgw/rgw_rest_swift.cc b/src/rgw/rgw_rest_swift.cc
index 877e3711a5e..b4f830830f9 100644
--- a/src/rgw/rgw_rest_swift.cc
+++ b/src/rgw/rgw_rest_swift.cc
@@ -288,6 +288,8 @@ int RGWCreateBucket_ObjStore_SWIFT::get_params()
{
policy.create_default(s->user.user_id, s->user.display_name);
+ location_constraint = store->region.api_name;
+
return 0;
}