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: leaky transactions on error #2657

Closed
wants to merge 1 commit into from
Closed

Conversation

stuartwdouglas
Copy link
Collaborator

If we are using the 'defer tx.CommitOrRollback(ctx, &err)' pattern this will not roll back on error if the err variable has been shadowed in a code block, as the outer err is not updated.

fixes #2655

If we are using the 'defer tx.CommitOrRollback(ctx, &err)' pattern
this will not roll back on error if the err variable has been
shadowed in a code block, as the outer err is not updated.

fixes #2655
@stuartwdouglas stuartwdouglas requested review from a team and deniseli and removed request for a team September 12, 2024 03:15
This was referenced Sep 12, 2024
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.

Redeploy failed to delete subscriptions
1 participant