From cce84124574e682ea7c569637b645d7e1cd4297e Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Tue, 3 Sep 2024 10:39:43 -0400 Subject: [PATCH] cls/rgw: remove rgw_cls_bi_entry default ctor to allow aggregate initialization Signed-off-by: Casey Bodley --- src/cls/rgw/cls_rgw_types.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/cls/rgw/cls_rgw_types.h b/src/cls/rgw/cls_rgw_types.h index 8c90bee4c50..aaf461a5bc8 100644 --- a/src/cls/rgw/cls_rgw_types.h +++ b/src/cls/rgw/cls_rgw_types.h @@ -479,12 +479,10 @@ enum class BIIndexType : uint8_t { struct rgw_bucket_category_stats; struct rgw_cls_bi_entry { - BIIndexType type; + BIIndexType type = BIIndexType::Invalid; std::string idx; ceph::buffer::list data; - rgw_cls_bi_entry() : type(BIIndexType::Invalid) {} - void encode(ceph::buffer::list& bl) const { ENCODE_START(1, 1, bl); encode(type, bl); -- 2.39.5