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

fix(zero-cache): fix replication of TRUNCATE statements #3461

Merged
merged 2 commits into from
Dec 29, 2024

Conversation

darkgnotic
Copy link
Contributor

Truncates were initially processed by converting the TRUNCATE event into a sequence of del patches that were to be pushed through IVM pipelines. This never worked, as the generation of this sequence opened an iterator over the prev database handle, and that database needs to be concurrently advanced by the IVM push.

Instead, truncates are now processed in the same manner as that of schema changes; the advancement is aborted and pipelines are rehydrated from the curr database handle.

@darkgnotic darkgnotic requested a review from arv December 29, 2024 07:11
Copy link

vercel bot commented Dec 29, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
replicache-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 29, 2024 7:11am
zbugs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 29, 2024 7:11am

@darkgnotic darkgnotic enabled auto-merge (squash) December 29, 2024 07:11
@darkgnotic darkgnotic merged commit 4c5c8e4 into main Dec 29, 2024
9 checks passed
@darkgnotic darkgnotic deleted the darkgnotic/fix-truncate branch December 29, 2024 07:45
Copy link
Contributor

@arv arv left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines +228 to 230
constructor(msg: string) {
super(msg);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

you can remove the constructor now

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