osd: Fix Valgrind UninitCondition error in ECTransaction::Generate::Generate()

first_interval_in_write can be accessed before it has been initialized. This
is harmless as at worst it will just cause the 1st I/O to a FastEC PG to be
slightly slower than necessary by disabling some optimizations.

However it needs fixing so the teuthology Valgrind job can check for other
issues.

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-17 17:00:20 +01:00
parent 0dfc834523
commit 9958e1399a

View File

@ -729,7 +729,7 @@ struct ECCommon {
// Set by on_change, forces first write in each interval to be
// a full write to avoid PWLC spanning intervals. Fixes
// https://tracker.ceph.com/issues/73891
bool first_write_in_interval;
bool first_write_in_interval = false;
RMWPipeline(CephContext *cct,
ceph::ErasureCodeInterfaceRef ec_impl,