mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -05:00
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 {
|
} else {
|
||||||
logger.LogIf(ctx, err)
|
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
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user