Skip to content

Commit

Permalink
rgw: fix slave zonegroup cannot enable the bucket versioning
Browse files Browse the repository at this point in the history
Signed-off-by: lvshuhua <lvshuhua@cmss.chinamobile.com>
  • Loading branch information
lvshuhua committed Nov 28, 2016
1 parent e1667dc commit d0a6f01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rgw/rgw_op.cc
Expand Up @@ -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()) {
Expand Down

0 comments on commit d0a6f01

Please sign in to comment.