From: Yehuda Sadeh Date: Mon, 22 Jul 2013 20:36:30 +0000 (-0700) Subject: rgw: swift, in create bucket set location_constraints X-Git-Tag: v0.67-rc2~19^2~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1ecdb14937583d44273b8a2861379754f9c1c615;p=ceph.git 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 Reviewed-by: Greg Farnum --- diff --git a/src/rgw/rgw_rest_swift.cc b/src/rgw/rgw_rest_swift.cc index 877e3711a5e2..b4f830830f9f 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; }