diff --git a/api/layer/object.go b/api/layer/object.go index 67377ef4a..17ace4f43 100644 --- a/api/layer/object.go +++ b/api/layer/object.go @@ -505,6 +505,8 @@ func (n *layer) initWorkerPool(ctx context.Context, size int, p allObjectParams, default: } + // We have to make a copy of pointer to data.NodeVersion + // to get correct value in submitted task function. func(node *data.NodeVersion) { wg.Add(1) err = pool.Submit(func() {