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