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)
++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;