obj_tags.encode(tags_bl);
ldout(s->cct, 20) << "Read " << obj_tags.count() << "tags" << dendl;
- // forward bucket cors requests to meta master zone
+ // forward bucket tags requests to meta master zone
if (!store->svc.zone->is_meta_master()) {
/* only need to keep this data around if we're not meta master */
- in_data.append(data.c_str(), data.length());
+ in_data = std::move(data);
}
return 0;
{
bufferlist tags_bl;
public:
- RGWGetBucketTags_ObjStore_S3() = default;
- ~RGWGetBucketTags_ObjStore_S3() = default;
-
void send_response_data(bufferlist &bl) override;
};
class RGWPutBucketTags_ObjStore_S3 : public RGWPutBucketTags_ObjStore
{
public:
- RGWPutBucketTags_ObjStore_S3() {}
- ~RGWPutBucketTags_ObjStore_S3() {}
-
int get_params() override;
void send_response() override;
};
class RGWDeleteBucketTags_ObjStore_S3 : public RGWDeleteBucketTags
{
public:
- ~RGWDeleteBucketTags_ObjStore_S3() override {}
void send_response() override;
};
tag_map_t tag_map;
uint32_t max_obj_tags{10};
- uint32_t max_tag_key_size{128};
- uint32_t max_tag_val_size{256};
+ static constexpr uint32_t max_tag_key_size{128};
+ static constexpr uint32_t max_tag_val_size{256};
public:
RGWObjTags() = default;
RGWObjTags(uint32_t max_obj_tags):max_obj_tags(max_obj_tags) {}
- virtual ~RGWObjTags() = default;
void encode(bufferlist& bl) const {
ENCODE_START(1,1,bl);