change name

This commit is contained in:
Dark Templar 2017-09-19 12:12:06 +08:00
parent 47249181dc
commit dcc71a5203
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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;
}
}