mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdserver: remove TODO to delete URLStringsEqual
Discovery SRV supports to compare IP addresses with domain names, so we need URLStringsEqual function.
This commit is contained in:
parent
bbefb0ad0b
commit
89640cf08f
@ -421,7 +421,6 @@ func ValidateClusterAndAssignIDs(local *cluster, existing *cluster) error {
|
|||||||
sort.Sort(MembersByPeerURLs(lms))
|
sort.Sort(MembersByPeerURLs(lms))
|
||||||
|
|
||||||
for i := range ems {
|
for i := range ems {
|
||||||
// TODO: Remove URLStringsEqual after improvement of using hostnames #2150 #2123
|
|
||||||
if !netutil.URLStringsEqual(ems[i].PeerURLs, lms[i].PeerURLs) {
|
if !netutil.URLStringsEqual(ems[i].PeerURLs, lms[i].PeerURLs) {
|
||||||
return fmt.Errorf("unmatched member while checking PeerURLs")
|
return fmt.Errorf("unmatched member while checking PeerURLs")
|
||||||
}
|
}
|
||||||
|
@ -89,7 +89,6 @@ func (c *ServerConfig) verifyLocalMember(strict bool) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Advertised peer URLs must match those in the cluster peer list
|
// Advertised peer URLs must match those in the cluster peer list
|
||||||
// TODO: Remove URLStringsEqual after improvement of using hostnames #2150 #2123
|
|
||||||
apurls := c.PeerURLs.StringSlice()
|
apurls := c.PeerURLs.StringSlice()
|
||||||
sort.Strings(apurls)
|
sort.Strings(apurls)
|
||||||
urls.Sort()
|
urls.Sort()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user