raft: remove TLA comment

This commit is contained in:
Xiang Li
2014-05-28 10:05:25 -07:00
committed by Yicheng Qin
parent 1f0e13e956
commit 2ef9498d6f

View File

@@ -52,9 +52,6 @@ func (l *log) entries(i int) []Entry {
}
func (l *log) isUpToDate(i, term int) bool {
// LET upToDate == \/ m.mlastLogTerm > LastTerm(log[i])
// \/ /\ m.mlastLogTerm = LastTerm(log[i])
// /\ m.mlastLogIndex >= Len(log[i])
e := l.ents[l.lastIndex()]
return term > e.Term || (term == e.Term && i >= l.lastIndex())
}