Skip to content

Update persisted contiguousLength on append #655

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

Merged
merged 7 commits into from
May 12, 2025
Merged

Conversation

HDegroote
Copy link
Contributor

The previous flow is to set the persisted contiguousLength when the hypercore next loads, in Hypercore.core._tryOpen(). This updates it when it is actually set.

@HDegroote HDegroote changed the title Update persisted contiguousLength on append Update persisted contiguousLength on append and initial creation Feb 27, 2025
@HDegroote HDegroote changed the title Update persisted contiguousLength on append and initial creation Update persisted contiguousLength on append Feb 28, 2025
@mafintosh
Copy link
Contributor

We should refactor so we set it whenever we set the bitfield, leaving open until then (good pr tho)

@mafintosh mafintosh merged commit d0e0d3a into main May 12, 2025
4 checks passed
@mafintosh mafintosh deleted the append-contig-fix branch May 12, 2025 16:52
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.

3 participants