]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw/multisite: add type to RGW_OP_SYNC_DATALOG_NOTIFY2
authorYuval Lifshitz <ylifshit@redhat.com>
Sun, 16 Jan 2022 16:35:23 +0000 (18:35 +0200)
committerCasey Bodley <cbodley@redhat.com>
Fri, 27 May 2022 19:47:33 +0000 (15:47 -0400)
without that the following errors are happening during sync:

ERROR: AWS4 completion for operation: 0, NOT IMPLEMENTED
op->ERRORHANDLER: err_no=-2201 new_err_no=-2201

Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
src/rgw/rgw_op_type.h
src/rgw/rgw_rest_log.h
src/rgw/rgw_rest_s3.cc

index 6fe5a564da60962f1f675d4c3e4d04e1ea3f8a75..58ea807318e7b0a5d452b7c94cd41c9ac6696d8f 100644 (file)
@@ -92,6 +92,7 @@ enum RGWOpType {
   RGW_OP_GET_BUCKET_META_SEARCH,
   RGW_OP_DEL_BUCKET_META_SEARCH,
   RGW_OP_SYNC_DATALOG_NOTIFY,
+  RGW_OP_SYNC_DATALOG_NOTIFY2,
   RGW_OP_SYNC_MDLOG_NOTIFY,
   RGW_OP_PERIOD_POST,
   /* sts specific*/
index f01fcf857e93fef6f9aaec9e9c80bf4aa6244b82..0838a0e510b87533c152f801a4242f1a19a06c2f 100644 (file)
@@ -290,6 +290,7 @@ public:
   const char* name() const override {
     return "datalog_notify2";
   }
+  RGWOpType get_type() override { return RGW_OP_SYNC_DATALOG_NOTIFY2; }
 };
 
 class RGWOp_DATALog_Delete : public RGWRESTOp {
index ba4b4471a815b4a162a875293af421b067374c8d..db7d54cdcf3efce10fe784f653e595270c4de4ce 100644 (file)
@@ -5650,6 +5650,7 @@ AWSGeneralAbstractor::get_auth_data_v4(const req_state* const s,
         case RGW_OP_DELETE_MULTI_OBJ:
         case RGW_OP_ADMIN_SET_METADATA:
         case RGW_OP_SYNC_DATALOG_NOTIFY:
+        case RGW_OP_SYNC_DATALOG_NOTIFY2:
         case RGW_OP_SYNC_MDLOG_NOTIFY:
         case RGW_OP_PERIOD_POST:
         case RGW_OP_SET_BUCKET_WEBSITE:
@@ -5673,7 +5674,7 @@ AWSGeneralAbstractor::get_auth_data_v4(const req_state* const s,
        case RGW_OP_GET_OBJ://s3select its post-method(payload contain the query) , the request is get-object
           break;
         default:
-          ldpp_dout(s, 10) << "ERROR: AWS4 completion for this operation NOT IMPLEMENTED" << dendl;
+          ldpp_dout(s, 10) << "ERROR: AWS4 completion for operation: " << s->op_type << ", NOT IMPLEMENTED" << dendl;
           throw -ERR_NOT_IMPLEMENTED;
       }