mirror of
https://github.com/pgsty/minio.git
synced 2026-07-23 06:00:24 +03:00
Avoid reconnect of disk during startup sequence (#14070)
This commit is contained in:
+1
-1
@@ -106,7 +106,7 @@ func isEndpointConnectionStable(diskMap map[Endpoint]StorageAPI, endpoint Endpoi
|
|||||||
if !disk.IsOnline() {
|
if !disk.IsOnline() {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if disk.LastConn().After(lastCheck) {
|
if !lastCheck.IsZero() && disk.LastConn().After(lastCheck) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
|
|||||||
Reference in New Issue
Block a user