![]() The first entry in the log is a dummy which is used for matchTerm but may not have an actual payload. This change permits Storage implementations to treat this term value specially instead of storing it as a dummy Entry. Storage.FirstIndex() no longer includes the term-only entry. This reverses a recent decision to create entry zero as initially unstable; Storage implementations are now required to make Term(0) == 0 and the first unstable entry is now index 1. stableTo(0) is no longer allowed. |
||
---|---|---|
.. | ||
raftpb | ||
diff_test.go | ||
doc.go | ||
example_test.go | ||
log.go | ||
log_test.go | ||
node.go | ||
node_bench_test.go | ||
node_test.go | ||
raft.go | ||
raft_paper_test.go | ||
raft_test.go | ||
storage.go | ||
util.go |