From ae8e863ff41dbc6ef5a85849a21bc05c1401079d Mon Sep 17 00:00:00 2001 From: Krishna Srinivas Date: Fri, 6 Apr 2018 16:59:31 -0700 Subject: [PATCH] disk.String() represents just path and not URL when disk is a local disk (#5785) --- cmd/xl-sets.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cmd/xl-sets.go b/cmd/xl-sets.go index e86e52b04..5aa59b37d 100644 --- a/cmd/xl-sets.go +++ b/cmd/xl-sets.go @@ -83,7 +83,13 @@ func (s *xlSets) isConnected(endpoint Endpoint) bool { if s.xlDisks[i][j] == nil { 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 } return s.xlDisks[i][j].IsOnline()