From b32d0a5b600ddc0f7eef22789475f6d215587443 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Wed, 12 Aug 2020 19:17:41 -0700 Subject: [PATCH] use the correct endpoints for offline drives --- cmd/erasure.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/erasure.go b/cmd/erasure.go index acd6cbfd0..26cee44a5 100644 --- a/cmd/erasure.go +++ b/cmd/erasure.go @@ -167,7 +167,7 @@ func getDisksInfo(disks []StorageAPI, endpoints []string) (disksInfo []madmin.Di errs = g.Wait() // Wait for the routines. for i, diskInfoErr := range errs { - ep := endpoints[i] + ep := disksInfo[i].Endpoint if diskInfoErr != nil { offlineDisks[ep]++ continue