Merge pull request #45310 from corhere/libn/delete-network-more-atomically

libnetwork: clean up inDelete network atomically
This commit is contained in:
Bjorn Neergaard 2023-04-20 20:26:24 +02:00 committed by GitHub
commit 660c04803e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1061,9 +1061,6 @@ func (n *network) delete(force bool, rmLBEndpoint bool) error {
}
n.ipamRelease()
if err = c.updateToStore(n); err != nil {
logrus.Warnf("Failed to update store after ipam release for network %s (%s): %v", n.Name(), n.ID(), err)
}
// We are about to delete the network. Leave the gossip
// cluster for the network to stop all incoming network