From d300e775a62083cff81fb6f6b9e152eeb6ac91a2 Mon Sep 17 00:00:00 2001 From: yinhen Date: Tue, 11 Jan 2022 15:33:58 +0800 Subject: [PATCH] Avoid reconnect of disk during startup sequence (#14070) --- cmd/erasure-sets.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/erasure-sets.go b/cmd/erasure-sets.go index edc2e1cff..c6f17af1e 100644 --- a/cmd/erasure-sets.go +++ b/cmd/erasure-sets.go @@ -106,7 +106,7 @@ func isEndpointConnectionStable(diskMap map[Endpoint]StorageAPI, endpoint Endpoi if !disk.IsOnline() { return false } - if disk.LastConn().After(lastCheck) { + if !lastCheck.IsZero() && disk.LastConn().After(lastCheck) { return false } return true