mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
raft: comment log.nextEnts
This commit is contained in:
parent
a06729a96a
commit
9cd3b2153f
@ -71,6 +71,8 @@ func (l *log) maybeCommit(maxIndex, term int) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// nextEnts returns all the avaliable entries for execution.
|
||||
// all the returned entries will be marked as applied.
|
||||
func (l *log) nextEnts() (ents []Entry) {
|
||||
if l.commit > l.applied {
|
||||
ents = l.ents[l.applied+1 : l.commit+1]
|
||||
|
Loading…
x
Reference in New Issue
Block a user