From 42a37916ff5c69d7df4d917cd9e143b4e92d389f Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Wed, 19 Nov 2025 13:10:27 -0500 Subject: [PATCH] mon/MonMap: cleanup initialization Signed-off-by: Patrick Donnelly --- src/mon/MonMap.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/mon/MonMap.h b/src/mon/MonMap.h index e47246e9aea..79ceaed2843 100644 --- a/src/mon/MonMap.h +++ b/src/mon/MonMap.h @@ -84,8 +84,7 @@ struct mon_info_t { : name(n), public_addrs(p_addrs) { } - mon_info_t() { } - + mon_info_t() = default; void encode(ceph::buffer::list& bl, uint64_t features) const; void decode(ceph::buffer::list::const_iterator& p); @@ -97,7 +96,7 @@ WRITE_CLASS_ENCODER_FEATURES(mon_info_t) class MonMap { public: - epoch_t epoch; // what epoch/version of the monmap + epoch_t epoch{0}; // what epoch/version of the monmap uuid_d fsid; utime_t last_changed; utime_t created; @@ -180,9 +179,7 @@ public: } } - MonMap() - : epoch(0) { - } + MonMap() = default; uuid_d& get_fsid() { return fsid; } -- 2.39.5