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 <bill_scales@uk.ibm.com>
This commit is contained in:
Bill Scales 2026-07-20 07:34:20 +01:00
parent 9958e1399a
commit 401e0a4b8b

View File

@ -209,7 +209,7 @@ struct ECCommon {
std::optional<std::map<std::string, ceph::buffer::list, std::less<>>> attrs;
std::optional<ceph::buffer::list> omap_header;
std::optional<std::map<std::string, ceph::buffer::list>> 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;