etcd/etcdserver
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
..
2014-10-20 15:00:54 -07:00
2014-10-30 18:15:53 -07:00
2014-11-07 16:13:07 -08:00
2014-11-13 12:29:25 -08:00
2014-11-13 12:29:25 -08:00