mirror of
https://github.com/minio/minio.git
synced 2025-11-07 04:42:56 -05:00
re-init the worker group to ensure errs[] slice is fresh
This commit is contained in:
@@ -164,6 +164,7 @@ func (sys *S3PeerSys) HealBucket(ctx context.Context, bucket string, opts madmin
|
||||
opts.Remove = isAllBucketsNotFound(poolErrs)
|
||||
opts.Recreate = !opts.Remove
|
||||
|
||||
g = errgroup.WithNErrs(len(sys.peerClients))
|
||||
healBucketResults := make([]madmin.HealResultItem, len(sys.peerClients))
|
||||
for idx, client := range sys.peerClients {
|
||||
idx := idx
|
||||
|
||||
Reference in New Issue
Block a user