-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adjust data directories #342
Conversation
Can one of the admins verify this patch? |
iotdb/conf/iotdb-engine.properties
Outdated
# If its prefix is a drive specifier followed by "\\", or if its prefix is "\\\\", then the pathname is absolute. Otherwise, it is relative. | ||
# If it is absolute, system will save the data in exact location it points to. | ||
# If it is relative, system will save the data in the relative path directory it represents under the IoTDB folder(i.e., %IOTDB_HOME%). | ||
# Note: If data_dir is assigned an empty string(i.e.,zero-length), it will be handled as a relative path. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这两段注释有很多重复的地方,考虑合并下?需要区分不同操作系统的地方单独说明?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
下面几个配置参数也是
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已改
*/ | ||
public void updateSysPath() { | ||
if(sysDir==null) { | ||
sysDir="data"+File.separatorChar+"system"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
data,system这种关键字方上面吧
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已改
return; | ||
} | ||
else { | ||
String homeDir = System.getProperty("IOTDB_HOME",null); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IOTDB_HOME在TsFileDBConstant这个类里面定义了
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已改
| D:\\iotdb\iotdb | "" | D:\\iotdb\iotdb\ | | ||
|
||
*/ | ||
public void updateWalPath() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个函数和上面的函数分别对sys和wal进行复制,代码有很多相似的地方(根据IOTDB_HOME来设置),相似的代码可以考虑合并为一个函数
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已改
9bd4a94
to
afead38
Compare
f746f8c
to
0dbe7e8
Compare
data_directory: A
system_directory: B
wal_directory: C
E.g., for linux platform:
delta->A/settled
overflow->A/overflow
index->A/index
digest->B/info
metadata->B/schema
derby->B/derby
wal->C/wal