Fix #461
This commit is contained in:
parent
f96794e170
commit
a631ec3bf7
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user