From 4bb553e015dfc080a0f84ed666e1b56f8a904cbb Mon Sep 17 00:00:00 2001 From: James Shubin Date: Sat, 13 May 2017 10:08:38 -0400 Subject: [PATCH] pgraph: Use the correct vertex handle to prevent a race Small typo made that is now fixed! These need to get caught with golint! --- pgraph/actions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pgraph/actions.go b/pgraph/actions.go index a5edb3df..a4ec7196 100644 --- a/pgraph/actions.go +++ b/pgraph/actions.go @@ -717,7 +717,7 @@ func (g *Graph) Start(first bool) { // start or continue // see: https://ttboj.wordpress.com/2015/07/27/golang-parallelism-issues-causing-too-many-open-files-error/ go func(vv *Vertex) { defer g.wg.Done() - defer v.Res.Reset() + defer vv.Res.Reset() // TODO: if a sufficient number of workers error, // should something be done? Should these restart // after perma-failure if we have a graph change?