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

[Feature Request]: Supports moving data directory to place to run infinity. #1322

Closed
1 task done
JinHai-CN opened this issue Jun 14, 2024 · 0 comments
Closed
1 task done
Assignees
Labels
feature request New feature or request

Comments

@JinHai-CN
Copy link
Contributor

JinHai-CN commented Jun 14, 2024

Is there an existing issue for the same feature request?

  • I have checked the existing issues.

Describe the feature you'd like

Now the absolute path is stored in meta file which will stop moving the data directory to other place. This PR is to fix this issue, to make user can move 'data' and 'wal' file to other path.

@JinHai-CN JinHai-CN added the feature request New feature or request label Jun 14, 2024
@JinHai-CN JinHai-CN changed the title [Feature Request]: Supporting move data to other dir to start infinity. [Feature Request]: Supports moving data directory to place to run infinity. Jun 14, 2024
yuzhichang pushed a commit that referenced this issue Jun 25, 2024
### What problem does this PR solve?

Replace the absolute path with relative path for data and wal files.

*Notice*: Now the items like `table_entry_dir_` in TableEntry ,
`segment_dir` in SegmentEntry are relative path, for example the former
path is start with `/var/infinity/data/..._db`, but now the path is
start with `..._db/` . In BaseEntry, we add a `base_dir_` to represent
the data path, and same for `data_dir_` in DBMeta and TableMeta.

Issue link:#1322

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
- [x] Breaking Change (fix or feature that could cause existing
functionality not to work as expected)
- [x] Refactoring
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants