From: Chang Liu Date: Sun, 5 May 2019 12:30:46 +0000 (+0800) Subject: rgw:new op type and error code about bucket tagging X-Git-Tag: v15.1.0~2575^2~12 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=25bcddf06039e9e5de45266fbd4fbeaefdf212da;p=ceph.git rgw:new op type and error code about bucket tagging Signed-off-by: Chang Liu --- diff --git a/src/rgw/rgw_common.cc b/src/rgw/rgw_common.cc index d79d32b42b6b..0b28b1099754 100644 --- a/src/rgw/rgw_common.cc +++ b/src/rgw/rgw_common.cc @@ -121,6 +121,7 @@ rgw_http_errors rgw_http_s3_errors({ { ERR_SERVICE_UNAVAILABLE, {503, "ServiceUnavailable"}}, { ERR_RATE_LIMITED, {503, "SlowDown"}}, { ERR_ZERO_IN_URL, {400, "InvalidRequest" }}, + { ERR_NO_SUCH_TAG_SET, {400, "NoSuchTagSetError"}}, }); rgw_http_errors rgw_http_swift_errors({ diff --git a/src/rgw/rgw_common.h b/src/rgw/rgw_common.h index 216e31b2f689..fcb78de36c89 100644 --- a/src/rgw/rgw_common.h +++ b/src/rgw/rgw_common.h @@ -241,6 +241,8 @@ using ceph::crypto::MD5; #define ERR_PACKED_POLICY_TOO_LARGE 2400 #define ERR_INVALID_IDENTITY_TOKEN 2401 +#define ERR_NO_SUCH_TAG_SET 2402 + #ifndef UINT32_MAX #define UINT32_MAX (0xffffffffu) #endif @@ -515,6 +517,9 @@ enum RGWOpType { RGW_OP_PUBSUB_NOTIF_CREATE, RGW_OP_PUBSUB_NOTIF_DELETE, RGW_OP_PUBSUB_NOTIF_LIST, + RGW_OP_GET_BUCKET_TAGGING, + RGW_OP_PUT_BUCKET_TAGGING, + RGW_OP_DELETE_BUCKET_TAGGING, }; class RGWAccessControlPolicy;