mirror of
https://github.com/minio/minio.git
synced 2025-02-23 11:32:32 -05:00
re-init the worker group to ensure errs[] slice is fresh
This commit is contained in:
parent
9588978028
commit
a4a74e9844
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user