talent-plan-tinykv/raft
niebayes f5a5aa8a17
add an id parameter to entsWithConfig and votedWithConfig (#419)
Currently, the only usage of `entsWithConfig` and `votedWithConfig` is in TestLeaderElectionOverwriteNewerLogs2AB. 
This test case emulates a five-peer network and spawns each peer either by `entsWithConfig` or `votedWithConfig`. 
However,  neither of them specifies an id parameter and as a result the five peers all have the same id `1`. This makes debugging and logging a little bit of creepy. 
So it'd better to add an id parameter both to `entsWithConfig` and `votedWithConfig`, and modify their usage accordingly.
2022-08-30 13:32:54 +08:00
..
doc.go Fix typos (#233) 2021-01-18 13:35:03 +08:00
log.go add a new interface allEntries to RaftLog (#418) 2022-08-29 03:31:40 +00:00
raft_paper_test.go add a new interface allEntries to RaftLog (#418) 2022-08-29 03:31:40 +00:00
raft_test.go add an id parameter to entsWithConfig and votedWithConfig (#419) 2022-08-30 13:32:54 +08:00
raft.go Modify comments of electionElapsed (#228) 2020-12-30 11:46:42 +08:00
rawnode_test.go init course framework 2020-04-30 15:25:07 +08:00
rawnode.go Update rawnode.go (#301) 2021-11-10 17:27:06 +08:00
storage.go init course framework 2020-04-30 15:25:07 +08:00
util.go init course framework 2020-04-30 15:25:07 +08:00