From: Bill Scales Date: Fri, 17 Jul 2026 16:00:20 +0000 (+0100) Subject: osd: Fix Valgrind UninitCondition error in ECTransaction::Generate::Generate() X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9958e1399a537bbc5ba5806c43205d32679ce8a0;p=ceph.git 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 --- diff --git a/src/osd/ECCommon.h b/src/osd/ECCommon.h index c51a3150ce73..eedcc02383b2 100644 --- a/src/osd/ECCommon.h +++ b/src/osd/ECCommon.h @@ -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,