mirror of
https://github.com/ceph/ceph
synced 2026-08-02 07:03:18 +00:00
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:
parent
9958e1399a
commit
401e0a4b8b
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user