Skip to content

Commit d83586c

Browse files
committed
Multi source inter cluster fix when no port
1 parent 61e0ef3 commit d83586c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cluster/cluster_has.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func (cluster *Cluster) HasServer(srv *ServerMonitor) bool {
2020
// id can not be used for checking equality because same srv in different clusters
2121
cluster.LogPrintf(LvlInfo, "HasServer check %s vs %s ", sv.URL, srv.URL)
2222
// When server has no port URL has no port then discovery use port
23-
if sv.URL == srv.URL || sv.URL+":3306" == srv.URL {
23+
if sv.URL == srv.URL || sv.URL == srv.URL+":3306" {
2424
return true
2525
}
2626
}

0 commit comments

Comments
 (0)