]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
osd: Remove EC-optimized only flag for not reset_complete_to
authorAlex Ainscow <aainscow@uk.ibm.com>
Tue, 10 Jun 2025 14:58:28 +0000 (15:58 +0100)
committerLaura Flores <lflores@ibm.com>
Wed, 9 Jul 2025 15:47:24 +0000 (15:47 +0000)
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 <aainscow@uk.ibm.com>
(cherry picked from commit ca7eebcce7a7f7879deac5b917c3fcaf2249da14)

src/osd/PGLog.h

index 53ca8e92eb2ab2f4e75d0f54467c7d796c6335f2..07390eebe1deca4ff0ac26b78ba0034e83108387 100644 (file)
@@ -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;