mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 21:17:23 +00:00
remove redundant test branch in sorting algorithm
This commit is contained in:
parent
445b9c0762
commit
c0a7939cbb
@ -808,10 +808,6 @@ func (m *ManagerImpl) filterByAffinity(podUID, contName, resource string, availa
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
// If either nodes[i] or nodes[j] are in the 'hint's affinity set (but are not -1)
|
|
||||||
if nodes[i] != nodeWithoutTopology && nodes[j] != nodeWithoutTopology {
|
|
||||||
return perNodeDevices[nodes[i]].Len() < perNodeDevices[nodes[j]].Len()
|
|
||||||
}
|
|
||||||
// If one or the other of nodes[i] or nodes[j] is the fake NUMA node -1 (they can't both be)
|
// If one or the other of nodes[i] or nodes[j] is the fake NUMA node -1 (they can't both be)
|
||||||
if nodes[i] == nodeWithoutTopology {
|
if nodes[i] == nodeWithoutTopology {
|
||||||
return false
|
return false
|
||||||
|
Loading…
Reference in New Issue
Block a user