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

sqlite: fix cancellation cleanup for ExecContext #104

Merged
merged 4 commits into from
Jul 12, 2024

Conversation

creachadair
Copy link
Member

I did not test the changes in #103 sufficiently, and missed a corner case in
ExecContext: We need to make sure the context cleanup happens prior to the
synchronization, not in a defer.

Add a test to actually trigger this case, and fix the cleanup so it happens
before return as intended.

@creachadair creachadair requested a review from maisem July 12, 2024 14:02
@creachadair creachadair force-pushed the mjf/exec-early-exit branch from e3c758c to e796604 Compare July 12, 2024 14:09
@creachadair creachadair force-pushed the mjf/exec-early-exit branch from e796604 to 71282a4 Compare July 12, 2024 14:12
Copy link
Contributor

@maisem maisem left a comment

Choose a reason for hiding this comment

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

Thank you!

@creachadair creachadair merged commit af1946c into main Jul 12, 2024
2 checks passed
@creachadair creachadair deleted the mjf/exec-early-exit branch July 12, 2024 14:52
Copy link
Member

@bradfitz bradfitz left a comment

Choose a reason for hiding this comment

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

Nice. And more readable now too as a bonus.

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