From c79bcc8838f2a97c11e03f1657bb43161ec48a73 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Fri, 14 Oct 2022 20:37:50 -0700 Subject: [PATCH] Revert "convert context.DeadlineExceed to offline disk in DiskInfo() (#15869)" This reverts commit 0fe58dbb343d6880cd3c9ddba8461c4369806cb0. --- cmd/erasure.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/erasure.go b/cmd/erasure.go index f24fa12e0..7dcf58ca4 100644 --- a/cmd/erasure.go +++ b/cmd/erasure.go @@ -108,7 +108,7 @@ func (d byDiskTotal) Less(i, j int) bool { func diskErrToDriveState(err error) (state string) { switch { - case errors.Is(err, errDiskNotFound) || errors.Is(err, context.DeadlineExceeded): + case errors.Is(err, errDiskNotFound): state = madmin.DriveStateOffline case errors.Is(err, errCorruptedFormat): state = madmin.DriveStateCorrupt