mirror of
https://github.com/actiontech/dble.git
synced 2026-01-05 20:30:40 -06:00
fix: variable display and default settings
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user