Jing Yang
|
16c2187ab3
Implement the prevote phase on both client and server side.
|
3 роки тому |
Jing Yang
|
18cbd8e0c6
Create a dedicated struct for becoming the next leader.
|
3 роки тому |
Jing Yang
|
aab761204b
Separate the async part from the rest of the function.
|
3 роки тому |
Jing Yang
|
c3c3f41b5b
Make count_votes_until_cancelled() a member function.
|
3 роки тому |
Jing Yang
|
3c0ef3495f
Refactor: Separate spawn_request_votes().
|
3 роки тому |
Jing Yang
|
26a25ba34c
Refactor: split the quorum counting function.
|
3 роки тому |
Jing Yang
|
18103d0458
Cancel election at shutdown.
|
3 роки тому |
Jing Yang
|
b325a297ae
Add a comment in election code.
|
3 роки тому |
Jing Yang
|
10ac3235eb
Make run_election_timer() a simple function.
|
3 роки тому |
Jing Yang
|
7329e47622
Add rpc_client and beat_ticker to the context.
|
3 роки тому |
Jing Yang
|
ff45298c67
Replace term marker with a static remote context.
|
3 роки тому |
Jing Yang
|
9796a49bdc
Move election.rs to the new standalone daemon_watch.
|
3 роки тому |
Jing Yang
|
5fe90f62fe
Refactor: move DaemonWatch out of DaemonEnv.
|
3 роки тому |
Jing Yang
|
bd14aed2a2
Replace tuple with a struct with named fields.
|
3 роки тому |
Jing Yang
|
56f934ea4f
Remove next_index and current_step from RaftState.
|
3 роки тому |
Jing Yang
|
e026ab6803
Move next_index and current_step out of RaftState.
|
3 роки тому |
Jing Yang
|
2f66c3fa08
Create an explicit enum for sync log entry events.
|
3 роки тому |
Jing Yang
|
0b29f77341
Wrap data of the sync log entries daemon in opaque structs.
|
3 роки тому |
Jing Yang
|
ca59d5b7ac
Replace SeqCst ordering with more relaxed ones in keep_running.
|
3 роки тому |
Jing Yang
|
9523f609d3
Move sentinel_commit_index to verify_authority_daemon.
|
3 роки тому |
Jing Yang
|
6d22246e50
Merge stop_wait_group into daemon env.
|
3 роки тому |
Jing Yang
|
f230c518c0
Merge daemon_env guard into daemons.
|
3 роки тому |
Jing Yang
|
56e5b19355
Name each daemon thread at creation.
|
3 роки тому |
Jing Yang
|
7d8b309287
Explicitly list the requirement for commands.
|
3 роки тому |
Jing Yang
|
0383c75c20
Remove excessive use of "Default".
|
3 роки тому |
Jing Yang
|
e3f2148ecb
Remove the "Default" requirement on command.
|
3 роки тому |
Jing Yang
|
e8b752a92f
Move LogEntry and LogEntryEnum to log_array.rs
|
3 роки тому |
Jing Yang
|
098742095d
Explicitly allow no-op and term-change log entries.
|
3 роки тому |
Jing Yang
|
5667013a1d
Extend election timer timeout to accommodate slower heartbeats.
|
3 роки тому |
Jing Yang
|
9d63f1d698
Commit a new log entry immediately after being elected.
|
3 роки тому |