Skip to content

Commit

Permalink
Merge pull request #12175 from dongbula/fix-slavezonegroup-cannot-ena…
Browse files Browse the repository at this point in the history
…ble-bucket-versioning

rgw: fix slave zonegroup cannot enable the bucket versioning

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
  • Loading branch information
cbodley committed Apr 6, 2017
2 parents 6a43cdd + d0a6f01 commit d346b1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rgw/rgw_op.cc
Expand Up @@ -452,8 +452,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 d346b1b

Please sign in to comment.