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

feat(storage): use STATE_CLEAN and TTL as default compaction_filter_mask #3482

Merged
merged 4 commits into from
Jun 27, 2022

Conversation

Li0k
Copy link
Contributor

@Li0k Li0k commented Jun 27, 2022

I hereby agree to the terms of the Singularity Data, Inc. Contributor License Agreement.

What's changed and what's your intention?

as title

Checklist

  • [ ] I have written necessary docs and comments
  • [ ] I have added necessary unit tests and integration tests

Refer to a related PR or issue link (optional)

@Li0k Li0k force-pushed the li0k/feat_compaction_filter_mask branch 3 times, most recently from 8c2b786 to 298331c Compare June 27, 2022 09:00
@codecov
Copy link

codecov bot commented Jun 27, 2022

Codecov Report

Merging #3482 (d38c5f5) into main (d38c5f5) will not change coverage.
The diff coverage is n/a.

❗ Current head d38c5f5 differs from pull request most recent head e9b4fdd. Consider uploading reports for the commit e9b4fdd to get more accurate results

@@           Coverage Diff           @@
##             main    #3482   +/-   ##
=======================================
  Coverage   74.44%   74.44%           
=======================================
  Files         768      768           
  Lines      107557   107557           
=======================================
  Hits        80073    80073           
  Misses      27484    27484           
Flag Coverage Δ
rust 74.44% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

Self {
ttl: table_option.ttl,
}
let ttl = if table_option.ttl == 0 {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Use a const instead of 0.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fix it with a constant value

i gonna unifty the constant value define in other pr (in constant::hummock mod)

@Li0k Li0k force-pushed the li0k/feat_compaction_filter_mask branch from 298331c to e9b4fdd Compare June 27, 2022 10:19
@Li0k Li0k added the mergify/can-merge Indicates that the PR can be added to the merge queue label Jun 27, 2022
@mergify mergify bot merged commit 42e2e59 into main Jun 27, 2022
@mergify mergify bot deleted the li0k/feat_compaction_filter_mask branch June 27, 2022 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mergify/can-merge Indicates that the PR can be added to the merge queue type/feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants