Skip to content

Commit

Permalink
rgw: enable to update acl of bucket created in slave zonegroup
Browse files Browse the repository at this point in the history
Fixes: http://tracker.ceph.com/issues/16888

Signed-off-by: Guo Zhandong <guozhandong@cmss.chinamobile.com>
  • Loading branch information
Guo Zhandong authored and anchal0997 committed Jun 28, 2020
1 parent 866a265 commit 1402632
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/rgw/rgw_op.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4199,6 +4199,16 @@ void RGWPutACLs::execute()
return;
}

if (s->object.empty() && !store->is_meta_master()) {
bufferlist in_data;
in_data.append(data, len);
op_ret = forward_request_to_master(s, NULL, store, in_data, NULL);
if (op_ret < 0) {
ldout(s->cct, 20) << __func__ << "forward_request_to_master returned ret=" << op_ret << dendl;
return;
}
}

if (s->cct->_conf->subsys.should_gather(ceph_subsys_rgw, 15)) {
ldout(s->cct, 15) << "Old AccessControlPolicy";
policy->to_xml(*_dout);
Expand Down

0 comments on commit 1402632

Please sign in to comment.