mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
added mutex on read from controller.svcRecords map
Signed-off-by: Vladislav Kolesnikov <vkolesnikov@beget.ru>
This commit is contained in:
parent
d8ef832bc1
commit
1e0c61c3a2
1 changed files with 5 additions and 1 deletions
|
@ -575,7 +575,11 @@ func (sb *sandbox) resolveName(req string, networkName string, epList []*endpoin
|
|||
ep.Unlock()
|
||||
}
|
||||
|
||||
sr, ok := n.getController().svcRecords[n.ID()]
|
||||
c := n.getController()
|
||||
c.Lock()
|
||||
sr, ok := c.svcRecords[n.ID()]
|
||||
c.Unlock()
|
||||
|
||||
if !ok {
|
||||
continue
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue