From 5f89d37506adab0aa59e7a8a46eb962030565c72 Mon Sep 17 00:00:00 2001 From: Guo Zhandong Date: Wed, 22 Mar 2017 18:00:37 +0800 Subject: [PATCH] rgw: enable to update acl of bucket created in slave zonegroup Fixes: http://tracker.ceph.com/issues/16888 Signed-off-by: Guo Zhandong --- src/rgw/rgw_op.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc index aaf7f96438cf9..1443f68deb575 100644 --- a/src/rgw/rgw_op.cc +++ b/src/rgw/rgw_op.cc @@ -4189,6 +4189,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); -- 2.39.5