-
Notifications
You must be signed in to change notification settings - Fork 590
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(storage): Use TableKey struct in the state store interfaces #11943
Conversation
@@ -46,15 +51,19 @@ pub enum KeyOp { | |||
/// `MemTable` is a buffer for modify operations without encoding | |||
#[derive(Clone)] | |||
pub struct MemTable { | |||
pub(crate) buffer: BTreeMap<Bytes, KeyOp>, | |||
pub(crate) buffer: BTreeMap<TableKey<Bytes>, KeyOp>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need #[derive(EstimateSize)]
for TableKey to make memory statistics more accurate?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is already done in this PR here.
48d7d08
to
bd980c2
Compare
Codecov Report
@@ Coverage Diff @@
## main #11943 +/- ##
==========================================
- Coverage 69.73% 69.71% -0.02%
==========================================
Files 1424 1422 -2
Lines 236446 236103 -343
==========================================
- Hits 164881 164601 -280
+ Misses 71565 71502 -63
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 5 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
ba2e73d
to
94c59b8
Compare
94c59b8
to
d6a0d95
Compare
I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
Fix #11927
HummockStorage
into src/storage/hummock/store/hummock_storage.rsLocalHummockStorage
into src/storage/hummock/store/local_hummock_storage.rsChecklist
./risedev check
(or alias,./risedev c
)Documentation
Release note
If this PR includes changes that directly affect users or other significant modifications relevant to the community, kindly draft a release note to provide a concise summary of these changes. Please prioritize highlighting the impact these changes will have on users.