Avoid reconnect of disk during startup sequence (#14070)

This commit is contained in:
yinhen 2022-01-11 15:33:58 +08:00 committed by GitHub
parent 7ee2d1c339
commit d300e775a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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