From df2871de535571bd33a79e6c9de4674cf32c5fc8 Mon Sep 17 00:00:00 2001 From: AlexHuang2021 <87768114+AlexHuang2021@users.noreply.github.com> Date: Fri, 23 Jul 2021 03:14:44 +0800 Subject: [PATCH] fix: return error when listing fails to retry healing (#12765) --- cmd/global-heal.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/global-heal.go b/cmd/global-heal.go index 39326c5c1..54196245d 100644 --- a/cmd/global-heal.go +++ b/cmd/global-heal.go @@ -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():