mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
raft: remove unused raftLog.isOutOfAppliedBounds
This commit is contained in:
parent
1e0f87df8c
commit
85d0e2f130
@ -288,13 +288,6 @@ func (l *raftLog) isOutOfBounds(i uint64) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func (l *raftLog) isOutOfAppliedBounds(i uint64) bool {
|
||||
if i < l.firstIndex() || i > l.applied {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func min(a, b uint64) uint64 {
|
||||
if a > b {
|
||||
return b
|
||||
|
Loading…
x
Reference in New Issue
Block a user