Skip to content

Conversation

ronaudinho
Copy link
Contributor

closes #392

I ran existing tests but nothing is broken by these changes, any pointer as to where to add appropriate tests is appreciated.

P.S. re-reading the diffs, I feel like the current bool version is clearer, especially at call sites

Copy link
Collaborator

@jonathanc-n jonathanc-n left a comment

Choose a reason for hiding this comment

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

This shouldn't need additional tests. It does make the code look a little messier but it makes it much clearer what is being returned. Thanks for the contribution @ronaudinho! Just a small comment below

}

impl WriteResult {
pub fn needs_compaction(&self) -> bool {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

adding this mainly to make python binding build success, but end up using this in other parts too.

Copy link

codecov bot commented Jul 28, 2025

Codecov Report

❌ Patch coverage is 88.37209% with 5 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/lib.rs 77.27% 5 Missing ⚠️

📢 Thoughts on this report? Let us know!

@ethe
Copy link
Member

ethe commented Jul 28, 2025

Thank you @ronaudinho !

@ethe ethe merged commit 2e0feba into tonbo-io:main Jul 28, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor MutableMemtable functions to return enum
3 participants