delete print
parent
11e6b1a66f
commit
28c8de8850
2
log.go
2
log.go
|
@ -442,8 +442,6 @@ func (l *Log) truncate(index uint64, term uint64) error {
|
||||||
entry := l.entries[index-l.startIndex-1]
|
entry := l.entries[index-l.startIndex-1]
|
||||||
if len(l.entries) > 0 && entry.Term != term {
|
if len(l.entries) > 0 && entry.Term != term {
|
||||||
debugln("log.truncate.termMismatch")
|
debugln("log.truncate.termMismatch")
|
||||||
fmt.Println(string(entry.Command))
|
|
||||||
|
|
||||||
return fmt.Errorf("raft.Log: Entry at index does not have matching term (%v): (IDX=%v, TERM=%v)", entry.Term, index, term)
|
return fmt.Errorf("raft.Log: Entry at index does not have matching term (%v): (IDX=%v, TERM=%v)", entry.Term, index, term)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue