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

refactor(hummock): remove redundant code in state store implementation #1859

Merged
merged 5 commits into from
Apr 15, 2022

Conversation

BugenZhao
Copy link
Member

What's changed and what's your intention?

There're some redundant codes in iter vs reverse_iter, scan vs reverse_scan.

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)

Signed-off-by: Bugen Zhao <i@bugenzhao.com>
Signed-off-by: Bugen Zhao <i@bugenzhao.com>
Signed-off-by: Bugen Zhao <i@bugenzhao.com>
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

license-eye has totally checked 715 files.

Valid Invalid Ignored Fixed
712 1 2 0
Click to see the invalid file list
  • src/storage/src/hummock/state_store.rs

src/storage/src/hummock/state_store.rs Show resolved Hide resolved
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

license-eye has totally checked 715 files.

Valid Invalid Ignored Fixed
712 1 2 0
Click to see the invalid file list
  • src/storage/src/hummock/state_store.rs

src/storage/src/hummock/state_store.rs Show resolved Hide resolved
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@BugenZhao BugenZhao enabled auto-merge (squash) April 15, 2022 04:55
Copy link
Contributor

@lmatz lmatz left a comment

Choose a reason for hiding this comment

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

LGTM!

@codecov
Copy link

codecov bot commented Apr 15, 2022

Codecov Report

Merging #1859 (03cdb75) into main (75a25fa) will decrease coverage by 0.00%.
The diff coverage is 70.96%.

@@            Coverage Diff             @@
##             main    #1859      +/-   ##
==========================================
- Coverage   70.87%   70.86%   -0.01%     
==========================================
  Files         610      611       +1     
  Lines       79659    79623      -36     
==========================================
- Hits        56455    56428      -27     
+ Misses      23204    23195       -9     
Flag Coverage Δ
rust 70.86% <70.96%> (-0.01%) ⬇️

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

Impacted Files Coverage Δ
src/storage/src/hummock/mod.rs 89.00% <ø> (+13.81%) ⬆️
src/storage/src/hummock/snapshot_tests.rs 96.63% <ø> (ø)
src/storage/src/hummock/state_store.rs 70.96% <70.96%> (ø)
src/meta/src/manager/stream_clients.rs 88.88% <0.00%> (-7.41%) ⬇️

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants