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

WIP Alternative breaking PR for versionstamp packing #111

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

behos
Copy link
Contributor

@behos behos commented Dec 14, 2023

This one takes a more opinionated approach to packing, to ensure that packing of values with incomplete versionstamp will append the versionstamp offset at the end.

To further expand on this, we can expose an enum with Complete(bytes) and Incomplete(bytes) to force the use with set_versionstampedX

Adding a convenience method to support versionstamped keys within a
subpsace.

This supports any level of the subspace having incomplete versionstamps
which are merged when packing new keys and subspaces.

It keeps track of the current versionstamp alongside the prefix since
we need to know how to adjust the offsets and how many incomplete
versionstamps we have.
@PierreZ
Copy link
Member

PierreZ commented Jan 16, 2024

May I close this?

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.

None yet

2 participants