raft: write entry 0 into log

This commit is contained in:
Yicheng Qin
2014-09-12 12:23:43 -07:00
parent ff7f340bba
commit a9af70c52b
5 changed files with 23 additions and 13 deletions

View File

@@ -141,7 +141,7 @@ func TestNode(t *testing.T) {
wants := []Ready{
{
State: raftpb.State{Term: 1, Commit: 1, LastIndex: 1},
Entries: []raftpb.Entry{{Term: 1, Index: 1}},
Entries: []raftpb.Entry{{}, {Term: 1, Index: 1}},
CommittedEntries: []raftpb.Entry{{Term: 1, Index: 1}},
},
{