mirror of
https://github.com/minio/minio.git
synced 2025-11-09 05:34:56 -05:00
isEndpointConnected should take local disk inputs (#9803)
PR #9801 while it is correct, the loop isEndpointConnected() was changed to rely on endpoint.String() which has the host information as well, which is not correct value as input to detect if the disk is down or up, if endpoint is local use its local path value instead.
This commit is contained in:
@@ -190,7 +190,11 @@ func (s *xlSets) connectDisks() {
|
||||
var wg sync.WaitGroup
|
||||
diskMap := s.getDiskMap()
|
||||
for _, endpoint := range s.endpoints {
|
||||
if isEndpointConnected(diskMap, endpoint.String()) {
|
||||
diskPath := endpoint.String()
|
||||
if endpoint.IsLocal {
|
||||
diskPath = endpoint.Path
|
||||
}
|
||||
if isEndpointConnected(diskMap, diskPath) {
|
||||
continue
|
||||
}
|
||||
wg.Add(1)
|
||||
|
||||
Reference in New Issue
Block a user