mirror of
https://github.com/minio/minio.git
synced 2025-01-25 21:53:16 -05:00
disk.String() represents just path and not URL when disk is a local disk (#5785)
This commit is contained in:
parent
da9f0e324e
commit
ae8e863ff4
@ -83,7 +83,13 @@ func (s *xlSets) isConnected(endpoint Endpoint) bool {
|
|||||||
if s.xlDisks[i][j] == nil {
|
if s.xlDisks[i][j] == nil {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if s.xlDisks[i][j].String() != endpoint.String() {
|
var endpointStr string
|
||||||
|
if endpoint.IsLocal {
|
||||||
|
endpointStr = endpoint.Path
|
||||||
|
} else {
|
||||||
|
endpointStr = endpoint.String()
|
||||||
|
}
|
||||||
|
if s.xlDisks[i][j].String() != endpointStr {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
return s.xlDisks[i][j].IsOnline()
|
return s.xlDisks[i][j].IsOnline()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user