Skip to content
Snippets Groups Projects
Commit 2b76eeaa authored by Georgy Moshkin's avatar Georgy Moshkin :speech_balloon:
Browse files

fix: commit index is 3 if there's 3 entries committed

parent 110c7957
No related branches found
No related tags found
No related merge requests found
Pipeline #9076 canceled
......@@ -505,7 +505,7 @@ fn start_boot(args: &args::Run) {
traft::Storage::persist_conf_state(&cs).unwrap();
traft::Storage::persist_entries(&[e1, e2, e3]).unwrap();
traft::Storage::persist_commit(2).unwrap();
traft::Storage::persist_commit(3).unwrap();
traft::Storage::persist_term(1).unwrap();
traft::Storage::persist_raft_id(raft_id).unwrap();
traft::Storage::persist_instance_id(&instance_id).unwrap();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment