Merge pull request #889 from weaveworks/881-probe-locking

Taking a read lock twice only works most of the time.
This commit is contained in:
Alfonso Acosta
2016-02-01 20:41:07 +00:00

View File

@@ -207,8 +207,6 @@ func (w *Weave) Tag(r report.Report) (report.Report, error) {
}
// Put information from weave ps on the container nodes
w.mtx.RLock()
defer w.mtx.RUnlock()
for id, node := range r.Container.Nodes {
prefix, _ := node.Latest.Lookup(docker.ContainerID)
prefix = prefix[:12]