chrod more clear debug info for committing
parent
59cb7259c2
commit
2252dfea4c
2
log.go
2
log.go
|
@ -405,7 +405,7 @@ func (l *Log) setCommitIndex(index uint64) error {
|
||||||
|
|
||||||
// Apply the changes to the state machine and store the error code.
|
// Apply the changes to the state machine and store the error code.
|
||||||
returnValue, err := l.ApplyFunc(command)
|
returnValue, err := l.ApplyFunc(command)
|
||||||
debugln("setCommitIndex.set.result index: ", entryIndex)
|
debugf("setCommitIndex.set.result index: %v entires index: ", i, entryIndex)
|
||||||
l.results[entryIndex] = &logResult{returnValue: returnValue, err: err}
|
l.results[entryIndex] = &logResult{returnValue: returnValue, err: err}
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in New Issue