coreos/etcd — pull request #1888 by yichengq (2014-12-08 23:29:53+00:00)
Title: raft: set the term of initial entries to 0

Because the term of new raft is 0, it is weird to have term-1 committed
entries in the log.

This causes problem on stableTo. Let us assume there is one conf add node entry in the log when init. When the external caller calls advance, it tries to stableTo (term: 1, index: 1), which is rejected because the term does not match. It keeps doing this until someone becomes the leader.

/cc @xiang90 @bdarnell