etcd/raft
Ben Darnell 64d9bcabf1 Add Storage.Term() method and hide the first entry from other methods.
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.
2014-11-17 16:54:12 -05:00
..
raftpb *: support updating advertise-peer-url 2014-11-11 12:07:03 -08:00
diff_test.go raft: introduce log storage interface. 2014-11-10 17:40:39 -05:00
doc.go *: add a Advance interface to raft.Node 2014-11-05 15:04:14 -08:00
example_test.go raft: introduce log storage interface. 2014-11-10 17:40:39 -05:00
log.go Add Storage.Term() method and hide the first entry from other methods. 2014-11-17 16:54:12 -05:00
log_test.go Add Storage.Term() method and hide the first entry from other methods. 2014-11-17 16:54:12 -05:00
node.go Merge remote-tracking branch 'coreos/master' into log-storage-interface 2014-11-13 15:50:08 -05:00
node_bench_test.go raft: introduce log storage interface. 2014-11-10 17:40:39 -05:00
node_test.go Add Storage.Term() method and hide the first entry from other methods. 2014-11-17 16:54:12 -05:00
raft.go Add Storage.Term() method and hide the first entry from other methods. 2014-11-17 16:54:12 -05:00
raft_paper_test.go Add Storage.Term() method and hide the first entry from other methods. 2014-11-17 16:54:12 -05:00
raft_test.go Add Storage.Term() method and hide the first entry from other methods. 2014-11-17 16:54:12 -05:00
storage.go Add Storage.Term() method and hide the first entry from other methods. 2014-11-17 16:54:12 -05:00
util.go raft: introduce log storage interface. 2014-11-10 17:40:39 -05:00