raft: remove unused raftpb.LastIndex

This commit is contained in:
Yicheng Qin
2014-09-15 14:34:23 -07:00
parent 07648f1f25
commit cc8d8f2102
5 changed files with 12 additions and 31 deletions

View File

@ -34,7 +34,7 @@ type Ready struct {
}
func isStateEqual(a, b pb.State) bool {
return a.Term == b.Term && a.Vote == b.Vote && a.Commit == b.Commit && a.LastIndex == b.LastIndex
return a.Term == b.Term && a.Vote == b.Vote && a.Commit == b.Commit
}
func IsEmptyState(st pb.State) bool {