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

Support deletions in LvmtStore by using Option<Box<[u8]>> for changes and LvmtValue.value #20

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

rongma7
Copy link
Contributor

@rongma7 rongma7 commented Jan 7, 2025

This PR introduces support for deletions in the LvmtStore by replacing the Box<[u8]> type with Option<Box<[u8]>> in both the changes parameter of the commit function and the value field of the LvmtValue struct.

Additionally, unit tests for LvmtValue now include cases where the value is None.


This change is Reviewable

@rongma7 rongma7 requested a review from ChenxingLi January 7, 2025 10:35
Copy link
Contributor

@ChenxingLi ChenxingLi left a comment

Choose a reason for hiding this comment

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

Reviewed 3 of 3 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @rongma7)

@rongma7 rongma7 merged commit d3122ee into master Jan 8, 2025
2 checks passed
@rongma7 rongma7 deleted the lvmt_value_option branch January 8, 2025 06:43
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.

2 participants