Taking a read lock twice only works most of the time.

This commit is contained in:
Tom Wilkie
2016-01-31 17:42:44 -08:00
parent c16f0d7f40
commit b103f93692

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]