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

Call Rollback when Transaction Failed #42

Merged
merged 1 commit into from
Jan 24, 2023

Conversation

ricoberger
Copy link
Member

We didn't call "tx.Rollback()" to abort a transaction, which could caused a bug, that the plugin stopped working. This should be fixed be calling "tx.Rollback()" via defer, so that it is always executed in case of a failure. When the transaction was successfull it is also called, but didn't do anything.

We didn't call "tx.Rollback()" to abort a transaction, which could
caused a bug, that the plugin stopped working. This should be fixed be
calling "tx.Rollback()" via defer, so that it is always executed in case
of a failure. When the transaction was successfull it is also called,
but didn't do anything.
@ricoberger ricoberger added the changelog: fixed Something which wasn't working is fixed label Jan 24, 2023
@ricoberger ricoberger merged commit fe5e099 into main Jan 24, 2023
@ricoberger ricoberger deleted the call-rollback-when-transaction-fails branch January 24, 2023 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog: fixed Something which wasn't working is fixed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant