This commit is contained in:
nkorange 2018-12-14 16:23:04 +08:00
parent f96794e170
commit a631ec3bf7
2 changed files with 0 additions and 20 deletions

View File

@ -294,13 +294,6 @@ public class DomainsManager {
throw new IllegalArgumentException("dom doesn't exist: " + domName);
}
// set default port and site info if missing
for (IpAddress ip : ips) {
if (ip.getPort() == 0) {
ip.setPort(dom.getClusterMap().get(ip.getClusterName()).getDefIPPort());
}
}
Datum datum1 = RaftCore.getDatum(UtilsAndCommons.getIPListStoreKey(dom));
String oldJson = StringUtils.EMPTY;

View File

@ -216,10 +216,6 @@ public class VirtualClusterDomain implements Domain, RaftListener {
continue;
}
if (ip.getPort() == 0) {
ip.setPort(getLegacyCkPort());
}
if (StringUtils.isEmpty(ip.getClusterName())) {
ip.setClusterName(UtilsAndCommons.DEFAULT_CLUSTER_NAME);
}
@ -406,15 +402,6 @@ public class VirtualClusterDomain implements Domain, RaftListener {
return JSON.toJSONString(domain);
}
/**
* the legacy check port is the default check port for old domain format
*/
@JSONField(serialize = false)
public int getLegacyCkPort() {
return clusterMap.get(UtilsAndCommons.DEFAULT_CLUSTER_NAME).getDefCkport();
}
@Override
public String getName() {
return name;