mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 02:00:43 +00:00
Taking a read lock twice only works most of the time.
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user