Merge pull request #79642 from tedyu/new-node-tree

Omit obtaining the lock when adding Nodes in newNodeTree
This commit is contained in:
Kubernetes Prow Robot 2019-07-02 13:08:29 -07:00 committed by GitHub
commit 8626ceb221
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,7 +63,7 @@ func newNodeTree(nodes []*v1.Node) *NodeTree {
tree: make(map[string]*nodeArray),
}
for _, n := range nodes {
nt.AddNode(n)
nt.addNode(n)
}
return nt
}