From: Bill Scales Date: Mon, 20 Jul 2026 06:34:20 +0000 (+0100) Subject: osd: Fix Valgrind UninitCondition error in ECCommon::read_result_t::print() X-Git-Tag: testing/wip-bharath8-testing-20260721.232151-main~3^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=401e0a4b8be3b8dad13b1d4d5ae4a4fe0eebebf1;p=ceph-ci.git osd: Fix Valgrind UninitCondition error in ECCommon::read_result_t::print() omap_complete in read_result_t can be uninitialized if ECSubReadReply contains an empty map of omap_complete information. Fixes: https://tracker.ceph.com/issues/76953 Signed-off-by: Bill Scales --- diff --git a/src/osd/ECCommon.h b/src/osd/ECCommon.h index eedcc02383b..e1851a71bcd 100644 --- a/src/osd/ECCommon.h +++ b/src/osd/ECCommon.h @@ -209,7 +209,7 @@ struct ECCommon { std::optional>> attrs; std::optional omap_header; std::optional> omap_entries; - bool omap_complete; + bool omap_complete = false; ECUtil::shard_extent_map_t buffers_read; ECUtil::shard_extent_set_t processed_read_requests; shard_id_set zero_length_reads;