]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix slave zonegroup cannot enable the bucket versioning 12175/head
authorlvshuhua <lvshuhua@cmss.chinamobile.com>
Thu, 24 Nov 2016 11:26:34 +0000 (19:26 +0800)
committerlvshuhua <lvshuhua@cmss.chinamobile.com>
Mon, 28 Nov 2016 01:46:31 +0000 (09:46 +0800)
Signed-off-by: lvshuhua <lvshuhua@cmss.chinamobile.com>
src/rgw/rgw_op.cc

index 3f9bf8e987c0f88a17712871664317a97a31aebe..038a13e3a24779d7b20b58b289900a72e21d89b2 100644 (file)
@@ -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()) {