mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
raft: remove TLA comment
This commit is contained in:
@@ -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())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user