mirror of https://github.com/minio/minio.git
Wait for updates collector when disk.NSScanner returns error (#14127)
This commit is contained in:
parent
1a56ebea70
commit
070c31eac5
|
|
@ -517,6 +517,11 @@ func (er erasureObjects) nsScanner(ctx context.Context, buckets []BucketInfo, bf
|
|||
} else {
|
||||
logger.LogIf(ctx, err)
|
||||
}
|
||||
// This ensures that we don't close
|
||||
// bucketResults channel while the
|
||||
// updates-collector goroutine still
|
||||
// holds a reference to this.
|
||||
wg.Wait()
|
||||
continue
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue