raft: update unstable when calling stableTo with 0
It should update unstable in this case because it may happen that raft only writes entry 0 into stable storage.
This commit is contained in:
@ -134,9 +134,6 @@ func (l *raftLog) appliedTo(i uint64) {
|
||||
}
|
||||
|
||||
func (l *raftLog) stableTo(i uint64) {
|
||||
if i == 0 {
|
||||
return
|
||||
}
|
||||
l.unstable = i + 1
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user