Revert "Avoid peerUpdate logic in swarm mode"

This reverts commit de61c2f25d.

Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
This commit is contained in:
Flavio Crisciani 2017-08-05 12:04:20 -07:00
parent 96e21f7c83
commit 8d6355b5c2
No known key found for this signature in database
GPG Key ID: 28CAFCE754CF3A48
1 changed files with 0 additions and 6 deletions

View File

@ -207,12 +207,6 @@ func (d *driver) peerDbDelete(nid, eid string, peerIP net.IP, peerIPMask net.IPM
}
func (d *driver) peerDbUpdateSandbox(nid string) {
// The following logic is useful only in non swarm mode
// In swarm mode instead the programmig will come directly from networkDB
if !d.isSerfAlive() {
return
}
d.peerDb.Lock()
pMap, ok := d.peerDb.mp[nid]
if !ok {