mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Do not create network entry in networkdb for the local node based on table
event from peer Signed-off-by: Santhosh Manohar <santhosh@docker.com>
This commit is contained in:
parent
f142339334
commit
8af5fdb9b1
1 changed files with 4 additions and 0 deletions
|
@ -25,6 +25,10 @@ func (nDB *NetworkDB) handleNetworkEvent(nEvent *NetworkEvent) bool {
|
|||
nDB.Lock()
|
||||
defer nDB.Unlock()
|
||||
|
||||
if nEvent.NodeName == nDB.config.NodeName {
|
||||
return false
|
||||
}
|
||||
|
||||
nodeNetworks, ok := nDB.networks[nEvent.NodeName]
|
||||
if !ok {
|
||||
// We haven't heard about this node at all. Ignore the leave
|
||||
|
|
Loading…
Reference in a new issue