Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ref. https://github.com/ten0s/locks-test Fixes include adding an election ref value, to sync with cands. This value is kept when the leader enters the safe loop. Also, an 'assert_leader' message is introduced, to ensure that candidates are kicked out of the safe loop when a leader acquires a new lock and remains the leader. Also, a locks_agent:async_await_all_locks/1 function was added to ensure that the leader gets told that it has all locks in a contested scenario.
- Loading branch information
Showing
2 changed files
with
176 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.