forked from KirinDave/gen_leader_revival
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
trigger handle_DOWN callback when a new leader is elected if the prev…
…ious one is down. Since the handle_DOWN callback is only called in the leader, when the leader goes down, that callback is never called. So the way to solve this is to keep track of the previous leader so that when a new one is elected, the handke_DOWN callback can be called if the previous leader is still down.
- Loading branch information
Showing
1 changed file
with
23 additions
and
1 deletion.
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