PageStorage: Fix lints on some files#3952
Conversation
Signed-off-by: JaySon-Huang <tshent@qq.com>
Signed-off-by: JaySon-Huang <tshent@qq.com>
Signed-off-by: JaySon-Huang <tshent@qq.com>
Signed-off-by: JaySon-Huang <tshent@qq.com>
Signed-off-by: JaySon-Huang <tshent@qq.com>
Signed-off-by: JaySon-Huang <tshent@qq.com>
|
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. DetailsReviewer can indicate their review by submitting an approval review. |
Signed-off-by: JaySon-Huang <tshent@qq.com>
| // Legacy and checkpoint files will be removed from `page_files` after `tryCompact`. | ||
| LegacyCompactor compactor(*this, write_limiter, read_limiter); | ||
| PageFileSet page_files_to_archive; | ||
| auto files_to_compact = std::move(page_files); |
There was a problem hiding this comment.
just
PageFileSet page_files_rc;
std::tie(page_files_rc, page_files_to_archive, gc_context.num_bytes_written_in_compact_legacy)
= compactor.tryCompact(std::move(page_files), writing_files_snapshot);
and use it in layer?
There was a problem hiding this comment.
compactor.tryCompact will take the files_to_compact and split it into page_files, page_files_to_archive . And later in line 1075, we need to apply compactor.tryMigrate on the page_files.
So we can't use a page_files_rc that only live inside this block.
|
/merge |
|
@JaySon-Huang: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests You only need to trigger If you have any questions about the PR merge process, please refer to pr process. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
|
This pull request has been accepted and is ready to merge. DetailsCommit hash: 83dae16 |
Coverage for changed filesCoverage summaryfull coverage report (for internal network access only) |
Coverage for changed filesCoverage summaryfull coverage report (for internal network access only) |
What problem does this PR solve?
Issue Number: close #xxx
Problem Summary:
What is changed and how it works?
Check List
Tests
Side effects
Documentation
Release note