fix: return error when listing fails to retry healing (#12765)

This commit is contained in:
AlexHuang2021 2021-07-23 03:14:44 +08:00 committed by GitHub
parent a3079a7de2
commit df2871de53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -283,6 +283,11 @@ func (er *erasureObjects) healErasureSet(ctx context.Context, buckets []BucketIn
finished: nil,
})
if err != nil {
logger.LogIf(ctx, err)
return err
}
select {
// If context is canceled don't mark as done...
case <-ctx.Done():