append vs commit comment changed
parent
3892138807
commit
267449da18
2
log.go
2
log.go
|
@ -333,7 +333,7 @@ func (l *Log) commitInfo() (index uint64, term uint64) {
|
|||
return entry.Index, entry.Term
|
||||
}
|
||||
|
||||
// Retrieves the last index and term that has been committed to the log.
|
||||
// Retrieves the last index and term that has been appended to the log.
|
||||
func (l *Log) lastInfo() (index uint64, term uint64) {
|
||||
l.mutex.RLock()
|
||||
defer l.mutex.RUnlock()
|
||||
|
|
Loading…
Reference in New Issue