Skip to content
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

Merged
merged 3 commits into from
Apr 9, 2018
Merged

Adjust data directories #342

merged 3 commits into from
Apr 9, 2018

Conversation

LeiRui
Copy link
Contributor

@LeiRui LeiRui commented Mar 1, 2018

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

@liuruiyiyang
Copy link
Collaborator

Can one of the admins verify this patch?

# 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.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这两段注释有很多重复的地方,考虑合并下?需要区分不同操作系统的地方单独说明?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

下面几个配置参数也是

Copy link
Contributor Author

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";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

data,system这种关键字方上面吧

Copy link
Contributor Author

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);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IOTDB_HOME在TsFileDBConstant这个类里面定义了

Copy link
Contributor Author

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() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个函数和上面的函数分别对sys和wal进行复制,代码有很多相似的地方(根据IOTDB_HOME来设置),相似的代码可以考虑合并为一个函数

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已改

MyXOF
MyXOF previously approved these changes Apr 9, 2018
@MyXOF MyXOF merged commit a8f8551 into master Apr 9, 2018
@Beyyes Beyyes deleted the adjust_data_directories branch April 19, 2018 01:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants