From: Prashant D Date: Fri, 5 Jan 2024 22:26:46 +0000 (-0500) Subject: mon: initialize ProgressEvent::add_to_ceph_s X-Git-Tag: v19.3.0~185^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=950aa4963d3671ea84b47f239e8743775632acba;p=ceph.git mon: initialize ProgressEvent::add_to_ceph_s The add_to_ceph_s field was not initialized causing unit test failures from check-generated.sh: **** ProgressEvent test 1 dump_json check failed **** ceph-dencoder type ProgressEvent select_test 1 dump_json > /tmp/typ-akwRrjNtt ceph-dencoder type ProgressEvent select_test 1 encode decode dump_json > /tmp/typ-iDmGaq17A 4c4 < "add_to_ceph_s": false --- > "add_to_ceph_s": true Fixes: https://tracker.ceph.com/issues/63950 Signed-off-by: Prashant D --- diff --git a/src/mon/mon_types.h b/src/mon/mon_types.h index 91502443d426..3429a8e99916 100644 --- a/src/mon/mon_types.h +++ b/src/mon/mon_types.h @@ -684,7 +684,7 @@ inline std::ostream& operator<<(std::ostream& out, const mon_feature_t& f) { struct ProgressEvent { std::string message; ///< event description float progress = 0.0f; ///< [0..1] - bool add_to_ceph_s; + bool add_to_ceph_s = false; void encode(ceph::buffer::list& bl) const { ENCODE_START(2, 1, bl); encode(message, bl);