]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: support swift storage policy api
authorYehuda Sadeh <yehuda@redhat.com>
Wed, 19 Nov 2014 17:41:25 +0000 (09:41 -0800)
committerYehuda Sadeh <yehuda@redhat.com>
Wed, 19 Nov 2014 17:50:31 +0000 (09:50 -0800)
Fixes: #9932
When creating a bucket, set the placement rule according to the
provided X-Storage-Policy http header.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_rest_swift.cc

index 8329fcc0f833b5c05d6e02c0c991407d23ffcefe..c2377508e87a058eb3bb1b72f159e30b37b9a8a7 100644 (file)
@@ -350,6 +350,7 @@ int RGWCreateBucket_ObjStore_SWIFT::get_params()
   }
 
   location_constraint = store->region.api_name;
+  placement_rule = s->info.env->get("HTTP_X_STORAGE_POLICY", "");
 
   return 0;
 }