mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
fix cleanup
This commit is contained in:
parent
c307b6abca
commit
4c1d864095
@ -444,7 +444,7 @@ func (s *store) deleteExpiredKeys(cutoff time.Time, index uint64, term uint64) {
|
||||
for {
|
||||
node := s.ttlKeyHeap.top()
|
||||
if node == nil || node.ExpireTime.After(cutoff) {
|
||||
return
|
||||
break
|
||||
}
|
||||
|
||||
s.ttlKeyHeap.pop()
|
||||
@ -453,7 +453,6 @@ func (s *store) deleteExpiredKeys(cutoff time.Time, index uint64, term uint64) {
|
||||
s.Stats.Inc(ExpireCount)
|
||||
s.WatcherHub.notify(newEvent(Expire, node.Path, s.Index, s.Term))
|
||||
}
|
||||
|
||||
s.WatcherHub.clearPendingWatchers()
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user