Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #198 from Mixton/priority
Fix promotion score computation. The score were not sorted correctly, making the node with the higher lag the best known one. Fortunately, these scores are just hints for the election. Should a failover occurs, the election process would refuse to promote the wrong node and promote the best one soon after.
- Loading branch information