mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-28 05:36:08 +00:00
fix flushBackoffQCompleted: remove defer
'defer' is called in the 'for' loop, remove it
This commit is contained in:
@@ -428,7 +428,7 @@ func (p *PriorityQueue) flushBackoffQCompleted() {
|
||||
}
|
||||
p.activeQ.Add(rawPodInfo)
|
||||
metrics.SchedulerQueueIncomingPods.WithLabelValues("active", BackoffComplete).Inc()
|
||||
defer p.cond.Broadcast()
|
||||
p.cond.Broadcast()
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user