From 6d0da64cefceb910017fdddaf69d559609d31012 Mon Sep 17 00:00:00 2001 From: Alex Aizman Date: Wed, 20 Nov 2024 16:46:46 -0500 Subject: [PATCH] EC: fix wait-group typo Signed-off-by: Alex Aizman --- ec/getjogger.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ec/getjogger.go b/ec/getjogger.go index d9c59e9edb..c1b55b5aef 100644 --- a/ec/getjogger.go +++ b/ec/getjogger.go @@ -849,10 +849,10 @@ func (c *getJogger) requestMeta(ctx *restoreCtx) error { nodes := md.RemoteTargets() ctx.nodes = make(map[string]*Metadata, len(nodes)) for _, node := range nodes { - wg.Add(1) if node.InMaintOrDecomm() { continue } + wg.Add(1) go func(si *meta.Snode, c *getJogger, mtx *sync.Mutex, mdExists bool) { ctx.requestMeta(si, c, mtx, mdExists) wg.Done()