From: lvshuhua Date: Thu, 24 Nov 2016 11:26:34 +0000 (+0800) Subject: rgw: fix slave zonegroup cannot enable the bucket versioning X-Git-Tag: v12.0.2~169^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d0a6f01741b0cb99643b58cbe41e6f76e2d41429;p=ceph.git rgw: fix slave zonegroup cannot enable the bucket versioning Signed-off-by: lvshuhua --- diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc index 3f9bf8e987c0..038a13e3a247 100644 --- a/src/rgw/rgw_op.cc +++ b/src/rgw/rgw_op.cc @@ -441,8 +441,8 @@ int rgw_build_bucket_policies(RGWRados* store, struct req_state* s) /* we now need to make sure that the operation actually requires copy source, that is * it's a copy operation */ - if (store->get_zonegroup().is_master && s->op == OP_DELETE && s->system_request) { - /*If the operation is delete and if this is the master, don't redirect*/ + if (store->get_zonegroup().is_master && s->system_request) { + /*If this is the master, don't redirect*/ } else if (!s->local_source || (s->op != OP_PUT && s->op != OP_COPY) || s->object.empty()) {