-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set leader and current term info together
Summary: Adjust `wa_raft_info` to store the leader and current term together in a single ETS record so that leader and current term info are always updated and read atomically to avoid reading a leader for the wrong term due to data races between updating of the leader and term. Differential Revision: D54859928 fbshipit-source-id: e6f1371547a6086ec690b0cb02f9d0297f1421d8
- Loading branch information
1 parent
2141bf3
commit 4386588
Showing
2 changed files
with
25 additions
and
24 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
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