From d0a6f01741b0cb99643b58cbe41e6f76e2d41429 Mon Sep 17 00:00:00 2001 From: lvshuhua Date: Thu, 24 Nov 2016 19:26:34 +0800 Subject: [PATCH] rgw: fix slave zonegroup cannot enable the bucket versioning Signed-off-by: lvshuhua --- src/rgw/rgw_op.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()) { -- 2.47.3