Merge pull request #46693 from corhere/vendor-libnetwork-for-20.10.27
[20.10] vendor: github.com/docker/libnetwork 3797618f9a38372e8107d8c06f6ae199e1133ae8
This commit is contained in:
commit
cf90912e90
3 changed files with 9 additions and 6 deletions
|
@ -3,7 +3,7 @@
|
|||
# LIBNETWORK_COMMIT is used to build the docker-userland-proxy binary. When
|
||||
# updating the binary version, consider updating github.com/docker/libnetwork
|
||||
# in vendor.conf accordingly
|
||||
: "${LIBNETWORK_COMMIT:=3f0048413d95802b9c6c836eba06bfc54f9dbd03}"
|
||||
: "${LIBNETWORK_COMMIT:=3797618f9a38372e8107d8c06f6ae199e1133ae8}"
|
||||
|
||||
install_proxy() {
|
||||
case "$1" in
|
||||
|
|
|
@ -48,7 +48,7 @@ github.com/grpc-ecosystem/go-grpc-middleware 3c51f7f332123e8be5a157c0802a
|
|||
# libnetwork
|
||||
|
||||
# When updating, also update LIBNETWORK_COMMIT in hack/dockerfile/install/proxy.installer accordingly
|
||||
github.com/docker/libnetwork 3f0048413d95802b9c6c836eba06bfc54f9dbd03
|
||||
github.com/docker/libnetwork 3797618f9a38372e8107d8c06f6ae199e1133ae8
|
||||
github.com/docker/go-events e31b211e4f1cd09aa76fe4ac244571fab96ae47f
|
||||
github.com/armon/go-radix e39d623f12e8e41c7b5529e9a9dd67a1e2261f80
|
||||
github.com/armon/go-metrics f0300d1749da6fa982027e449ec0c7a145510c3c # v0.4.1
|
||||
|
|
11
vendor/github.com/docker/libnetwork/store.go
generated
vendored
11
vendor/github.com/docker/libnetwork/store.go
generated
vendored
|
@ -402,11 +402,14 @@ func (c *controller) processEndpointDelete(nmap map[string]*netWatch, ep *endpoi
|
|||
return
|
||||
}
|
||||
|
||||
networkID := n.ID()
|
||||
endpointID := ep.ID()
|
||||
|
||||
c.Lock()
|
||||
nw, ok := nmap[n.ID()]
|
||||
nw, ok := nmap[networkID]
|
||||
|
||||
if ok {
|
||||
delete(nw.localEps, ep.ID())
|
||||
delete(nw.localEps, endpointID)
|
||||
c.Unlock()
|
||||
|
||||
// Update the svc db about local endpoint leave right away
|
||||
|
@ -420,9 +423,9 @@ func (c *controller) processEndpointDelete(nmap map[string]*netWatch, ep *endpoi
|
|||
|
||||
// This is the last container going away for the network. Destroy
|
||||
// this network's svc db entry
|
||||
delete(c.svcRecords, n.ID())
|
||||
delete(c.svcRecords, networkID)
|
||||
|
||||
delete(nmap, n.ID())
|
||||
delete(nmap, networkID)
|
||||
}
|
||||
}
|
||||
c.Unlock()
|
||||
|
|
Loading…
Reference in a new issue