summaryrefslogtreecommitdiff
path: root/src/rgw/rgw_admin.cc
diff options
context:
space:
mode:
authorYehuda Sadeh <yehuda@inktank.com>2012-12-13 18:09:37 -0800
committerYehuda Sadeh <yehuda@inktank.com>2012-12-13 18:09:37 -0800
commitaa158ad7a39da7b0ff156b598f94f51811d64d86 (patch)
treee4c640dd1ec41be39062d8cd9975e4cdf02a1b1d /src/rgw/rgw_admin.cc
parent24523913e3a1fa710e04f63716638418c3640c30 (diff)
downloadceph-wip-2169.tar.gz
rgw: allow setting preferred placement for new bucketswip-2169
Setting HTTP_X_RGW_PLACEMENT with name of preferred pool, will try to use it for placement, if it has been part of the placement pool set. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Diffstat (limited to 'src/rgw/rgw_admin.cc')
-rw-r--r--src/rgw/rgw_admin.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rgw/rgw_admin.cc b/src/rgw/rgw_admin.cc
index fb419d93b4c..ca8870f6285 100644
--- a/src/rgw/rgw_admin.cc
+++ b/src/rgw/rgw_admin.cc
@@ -435,7 +435,9 @@ static int create_bucket(string bucket_str, string& user_id, string& display_nam
rgw_bucket& bucket = bucket_info.bucket;
- ret = store->create_bucket(user_id, bucket, attrs);
+ string preferred_placement;
+
+ ret = store->create_bucket(user_id, bucket, attrs, preferred_placement);
if (ret && ret != -EEXIST)
goto done;