Jing Yang
|
c292d0ba65
Run snapshot daemon before apply command.
|
hace 4 años |
Jing Yang
|
e949c5c550
Send install snapshot request through apply command.
|
hace 4 años |
Jing Yang
|
cc8f061609
Create a dedicated trait for request snapshot function.
|
hace 4 años |
Jing Yang
|
5af7e3b05e
Move apply_command to its own module.
|
hace 4 años |
Jing Yang
|
072964f8a4
Provide a default NO_SNAPSHOT function.
|
hace 5 años |
Jing Yang
|
74a8a108ea
Fix clippy errors.
|
hace 5 años |
Jing Yang
|
5760aa3932
Merge branch 'snapshot': first version of snapshot taking.
|
hace 5 años |
Jing Yang
|
cd31fae304
Merge branch 'log_array': upgrade log array to support snapshot taking.
|
hace 5 años |
Jing Yang
|
91990f5065
Remove a todo that is done, which is also issue #2.
|
hace 5 años |
Jing Yang
|
7a42274118
Trigger snapshot when a command is applied.
|
hace 5 años |
Jing Yang
|
165b273fec
Add arguments for snapshot taking.
|
hace 5 años |
Jing Yang
|
6ce8d929e8
Integrate snapshot daemon into the main lib.
|
hace 5 años |
Jing Yang
|
6e2b80dc96
Implement the blocking mechanism using parker.
|
hace 5 años |
Jing Yang
|
951032231d
Half implemented snapshot.
|
hace 5 años |
Jing Yang
|
afe8fa2033
Implement the logic to send install_snapshot RPCs.
|
hace 5 años |
Jing Yang
|
e1f0e697e7
Add process_install_snapshot and build_install_snapshot functions.
|
hace 5 años |
Jing Yang
|
de65b33c12
Add an IndexTerm struct for LogArray.
|
hace 5 años |
Jing Yang
|
543b2d2f0e
Update one `log.end() - 1` call to use `log.last_index_term()`.
|
hace 5 años |
Jing Yang
|
2827664b94
Rename start_offset() to start(), len() to end().
|
hace 5 años |
Jing Yang
|
7f1702f9d4
Rename add() to add_command().
|
hace 5 años |
Jing Yang
|
b8e2904c31
Migrate log array to generics.
|
hace 5 años |
Jing Yang
|
f96c82b539
Refactor: log vector to LogArray.
|
hace 5 años |
Jing Yang
|
552106e1c2
Minor fixes: space, deserialization requirement, &Arc<>.
|
hace 5 años |
Jing Yang
|
bff43d8c12
Remove Sync from Command type requirement.
|
hace 5 años |
Jing Yang
|
2cf4d68306
Use generic types to allow different types of Command.
|
hace 5 años |
Jing Yang
|
b248deadbf
Move RaftState to a separate file.
|
hace 5 años |
Jing Yang
|
00297bde0a
Upgrade to rand 0.8
|
hace 5 años |
Jing Yang
|
fc4e79ab45
Remove an API misuse.
|
hace 5 años |
Jing Yang
|
f63dfdfc7f
Optimize syn log entries
|
hace 5 años |
Jing Yang
|
6464033923
Upgrade features crate and use the smaller crates.
|
hace 5 años |