Forráskód Böngészése

deadlock fix in RemoveStaticRoute

Andrei Ushakov 10 éve
szülő
commit
b62013c24c
1 módosított fájl, 0 hozzáadás és 1 törlés
  1. 0 1
      libnetwork/sandbox/route_linux.go

+ 0 - 1
libnetwork/sandbox/route_linux.go

@@ -177,7 +177,6 @@ func (n *networkNamespace) AddStaticRoute(r *types.StaticRoute) error {
 }
 }
 
 
 func (n *networkNamespace) RemoveStaticRoute(r *types.StaticRoute) error {
 func (n *networkNamespace) RemoveStaticRoute(r *types.StaticRoute) error {
-	n.Lock()
 
 
 	err := removeRoute(n.nsPath(), r.Destination, r.NextHop)
 	err := removeRoute(n.nsPath(), r.Destination, r.NextHop)
 	if err == nil {
 	if err == nil {