From: Casey Bodley Date: Tue, 3 Sep 2024 16:02:08 +0000 (-0400) Subject: cls/rgw: remove rgw_bucket_dir_entry_meta default ctor X-Git-Tag: testing/wip-pdonnell-testing-20240920.212106-debug~16^2~7 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=fa7873e19173306fbaad30f1f37e7845f959761c;p=ceph-ci.git cls/rgw: remove rgw_bucket_dir_entry_meta default ctor to allow aggregate initialization Signed-off-by: Casey Bodley --- diff --git a/src/cls/rgw/cls_rgw_types.h b/src/cls/rgw/cls_rgw_types.h index 876154f01d8..6b8d8a7abea 100644 --- a/src/cls/rgw/cls_rgw_types.h +++ b/src/cls/rgw/cls_rgw_types.h @@ -197,20 +197,17 @@ inline std::ostream& operator<<(std::ostream& out, RGWObjCategory c) { } struct rgw_bucket_dir_entry_meta { - RGWObjCategory category; - uint64_t size; + RGWObjCategory category = RGWObjCategory::None; + uint64_t size = 0; ceph::real_time mtime; std::string etag; std::string owner; std::string owner_display_name; std::string content_type; - uint64_t accounted_size; + uint64_t accounted_size = 0; std::string user_data; std::string storage_class; - bool appendable; - - rgw_bucket_dir_entry_meta() : - category(RGWObjCategory::None), size(0), accounted_size(0), appendable(false) { } + bool appendable = false; void encode(ceph::buffer::list &bl) const { ENCODE_START(7, 3, bl);