mirror of https://github.com/apache/iotdb
change name
This commit is contained in:
parent
47249181dc
commit
dcc71a5203
|
@ -7,7 +7,7 @@ import org.joda.time.DateTimeZone;
|
|||
public class TsfileDBConfig {
|
||||
|
||||
public static final String CONFIG_NAME = "iotdb-engine.properties";
|
||||
public static final String CONFIG_DEFAULT_PATH = "conf/" + CONFIG_NAME;
|
||||
public static final String HOME_DEFAULT_PATH = "conf/" + CONFIG_NAME;
|
||||
|
||||
/**
|
||||
* Port which JDBC server listens to
|
||||
|
|
|
@ -43,8 +43,8 @@ public class TsfileDBDescriptor {
|
|||
InputStream inputStream = null;
|
||||
String url = System.getProperty(TsFileDBConstant.IOTDB_CONF, null);
|
||||
if (url == null) {
|
||||
url = System.getProperty(SystemConstant.TSFILE_HOME, TsfileDBConfig.CONFIG_DEFAULT_PATH);
|
||||
if (!url.equals(TsfileDBConfig.CONFIG_DEFAULT_PATH)) {
|
||||
url = System.getProperty(SystemConstant.TSFILE_HOME, TsfileDBConfig.HOME_DEFAULT_PATH);
|
||||
if (!url.equals(TsfileDBConfig.HOME_DEFAULT_PATH)) {
|
||||
url = url + File.separatorChar + "conf" + File.separatorChar + TsfileDBConfig.CONFIG_NAME;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue