fix: variable display and default settings

This commit is contained in:
guoaomen
2023-04-03 14:09:02 +08:00
committed by LUA
parent fd5ae1ad47
commit 1d9e7df7fd
2 changed files with 4 additions and 0 deletions

View File

@@ -1680,6 +1680,9 @@ public final class SystemConfig {
}
public MysqlVersion getMysqlVersion() {
if (this.mysqlVersion == null && this.fakeMySQLVersion != null) {
this.mysqlVersion = VersionUtil.parseVersion(this.fakeMySQLVersion);
}
return mysqlVersion;
}

View File

@@ -50,6 +50,7 @@ public final class SystemParams {
readOnlyParams.add(new ParamInfo("clusterIP", ClusterConfig.getInstance().getClusterIP(), "Dble cluster center address, If clusterMode is zk, it is a full address with port"));
if (!ClusterConfig.getInstance().getClusterMode().equalsIgnoreCase(CONFIG_MODE_ZK)) {
readOnlyParams.add(new ParamInfo("clusterPort", ClusterConfig.getInstance().getClusterPort() == 0 ? "" : ClusterConfig.getInstance().getClusterPort() + "", "Dble cluster center address's port"));
readOnlyParams.add(new ParamInfo("grpcTimeout", ClusterConfig.getInstance().getGrpcTimeout() + "", "Under non-zk cluster configuration, the timeout period for calling the interface"));
}
readOnlyParams.add(new ParamInfo("rootPath", ClusterConfig.getInstance().getRootPath(), "Dble cluster center's root path, the default value is /dble"));
readOnlyParams.add(new ParamInfo("clusterId", ClusterConfig.getInstance().getClusterId(), "Dble cluster Id"));