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

722 snapshot tx changes #871

Merged
merged 3 commits into from
May 20, 2024
Merged

722 snapshot tx changes #871

merged 3 commits into from
May 20, 2024

Conversation

thorfour
Copy link
Contributor

Reopening this tx PR.

Snapshots now grab a write tx. This prevents from other writes coming in and getting compacted into L1+ before the snapshot completes thus allowing tx > snapshot_tx from making it into the snapshot.

Snapshots now also filter out any writes in L0 that are > snapshot_tx from the snapshot write.

Previously a snapshot could contain tx that were >= the snapshot_tx.
This worked fine due to the index dropping tx during replay that were >=
tx already in the index.

However it would be better for the future if snapshots actually only
contained tx's up to the snapshot tx
@thorfour thorfour requested a review from asubiotto May 20, 2024 15:42
@thorfour thorfour merged commit ec5311b into main May 20, 2024
7 checks passed
@thorfour thorfour deleted the 722-snapshot-tx-changes branch May 20, 2024 15:59
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