This repository has been archived by the owner on Mar 4, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replication: Only update commit index if last stored is high enough
A leader might have its last_stored field lagging behind its commit_index, after it committed an index that it did not yet persist, while enough followers for forming a majority did. We don't wont to update this leader's commit_index until last_stored has caught up. Signed-off-by: Free Ekanayaka <free@ekanayaka.io>
- Loading branch information