]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: swift, in create bucket set location_constraints
authorYehuda Sadeh <yehuda@inktank.com>
Mon, 22 Jul 2013 20:36:30 +0000 (13:36 -0700)
committerGreg Farnum <greg@inktank.com>
Mon, 22 Jul 2013 21:25:04 +0000 (14:25 -0700)
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>
src/rgw/rgw_rest_swift.cc

index 877e3711a5e2c0de79aa3f6e93b54ba6e95be41c..b4f830830f9ff25e922a8df2683579536910578e 100644 (file)
@@ -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;
 }