From ca7eebcce7a7f7879deac5b917c3fcaf2249da14 Mon Sep 17 00:00:00 2001 From: Alex Ainscow Date: Tue, 10 Jun 2025 15:58:28 +0100 Subject: [PATCH] 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 --- src/osd/PGLog.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/PGLog.h b/src/osd/PGLog.h index 53ca8e92eb2ab..07390eebe1dec 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; -- 2.39.5