Browse Source

Merge pull request #1421 from aboch/dl

Fix potential deadlock in getSvcRecords()
Jana Radhakrishnan 9 năm trước cách đây
mục cha
commit
4579730ee3
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      libnetwork/network.go

+ 1 - 1
libnetwork/network.go

@@ -1125,7 +1125,7 @@ func (n *network) getSvcRecords(ep *endpoint) []etchosts.Record {
 			continue
 			continue
 		}
 		}
 		if len(ip) == 0 {
 		if len(ip) == 0 {
-			log.Warnf("Found empty list of IP addresses for service %s on network %s (%s)", h, n.Name(), n.ID())
+			log.Warnf("Found empty list of IP addresses for service %s on network %s (%s)", h, n.name, n.id)
 			continue
 			continue
 		}
 		}
 		recs = append(recs, etchosts.Record{
 		recs = append(recs, etchosts.Record{