Selaa lähdekoodia

Merge pull request #1157 from mavenugo/ep-fix

Set persist flag on the dummy network object during cleanup
Santhosh Manohar 9 vuotta sitten
vanhempi
commit
8e826ef8be
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      libnetwork/sandbox_store.go

+ 1 - 1
libnetwork/sandbox_store.go

@@ -213,7 +213,7 @@ func (c *controller) sandboxCleanup() {
 			var ep *endpoint
 			if err != nil {
 				logrus.Errorf("getNetworkFromStore for nid %s failed while trying to build sandbox for cleanup: %v", eps.Nid, err)
-				n = &network{id: eps.Nid, ctrlr: c, drvOnce: &sync.Once{}}
+				n = &network{id: eps.Nid, ctrlr: c, drvOnce: &sync.Once{}, persist: true}
 				ep = &endpoint{id: eps.Eid, network: n, sandboxID: sbs.ID}
 			} else {
 				ep, err = n.getEndpointFromStore(eps.Eid)