summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYehuda Sadeh <yehuda@inktank.com>2013-07-30 13:53:53 -0700
committerYehuda Sadeh <yehuda@inktank.com>2013-07-30 13:53:53 -0700
commit86fb064f0b2e166d7ecbecdd5d06e1ec3620c372 (patch)
treedbab7999ac362772eff4c9bf23cf0f675a4a1d8f
parentebab04e01802f529ebfba280bb4ca5d6b6c4404f (diff)
downloadceph-wip-5808.tar.gz
rgw: fix set_buckets_enabled(), set_bucket_owner()wip-5808
Fixes: 5808 We cannit call put_bucket_instance_info() at that point, as the bucket structure wasn't initialized, so we don't have the bucket instance location information. Just calling put_bucket_info(). Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
-rw-r--r--src/rgw/rgw_rados.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc
index 7131df9eaeb..aba5cdf0ee2 100644
--- a/src/rgw/rgw_rados.cc
+++ b/src/rgw/rgw_rados.cc
@@ -2907,7 +2907,7 @@ int RGWRados::set_bucket_owner(rgw_bucket& bucket, ACLOwner& owner)
{
RGWBucketInfo info;
map<string, bufferlist> attrs;
- int r = get_bucket_instance_info(NULL, bucket, info, NULL, &attrs);
+ int r = get_bucket_info(NULL, bucket.name, info, NULL, &attrs);
if (r < 0) {
ldout(cct, 0) << "NOTICE: get_bucket_info on bucket=" << bucket.name << " returned err=" << r << dendl;
return r;
@@ -2940,7 +2940,7 @@ int RGWRados::set_buckets_enabled(vector<rgw_bucket>& buckets, bool enabled)
RGWBucketInfo info;
map<string, bufferlist> attrs;
- int r = get_bucket_instance_info(NULL, bucket, info, NULL, &attrs);
+ int r = get_bucket_info(NULL, bucket.name, info, NULL, &attrs);
if (r < 0) {
ldout(cct, 0) << "NOTICE: get_bucket_info on bucket=" << bucket.name << " returned err=" << r << ", skipping bucket" << dendl;
ret = r;