forked from Perl5/DBIx-Class
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix TxnScopeGuard misbehaving on externally set $@ without inner exce…
…ptions The guard is supposed to warn when it goes out of scope without a commit. However this doesn't work if $@ was already set before the guard was created and there were no eval{}s to clear it between definition and destruction. Fixing this by storing a weakref to the current exception (if any) and disregarding the contents of $@ if they match the ref we started with.
- Loading branch information
Showing
3 changed files
with
48 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters