From: Alex Ainscow Date: Tue, 10 Jun 2025 14:58:28 +0000 (+0100) Subject: osd: Remove EC-optimized only flag for not reset_complete_to X-Git-Tag: v20.1.0~68^2~23 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c7bf2894ef1b50bd1f0258d77ac5e22e51b1bddf;p=ceph-ci.git osd: Remove EC-optimized only flag for not reset_complete_to The protection here applies to non-optimized EC and replica shards, but will not be exercised as much. So this is essentially a clean up Signed-off-by: Alex Ainscow (cherry picked from commit ca7eebcce7a7f7879deac5b917c3fcaf2249da14) --- diff --git a/src/osd/PGLog.h b/src/osd/PGLog.h index 53ca8e92eb2..07390eebe1d 100644 --- a/src/osd/PGLog.h +++ b/src/osd/PGLog.h @@ -1009,7 +1009,7 @@ public: ++log.complete_to; // partial writes allow a shard which did not participate in a write to // have a missing version that is newer that the most recent log entry - if (ec_optimizations_enabled && (log.complete_to == log.log.end())) { + if (log.complete_to == log.log.end()) { // keep complete_to one entry behind the end of the log to stop // code incorrectly using it to deduce that recovery has completed --log.complete_to;