[DBIx-Class-Devel] [dbix-class] Don't rollback when TxnScopeGuard dtor is run twice (#63)

Nick Wellnhofer notifications at github.com
Wed Oct 22 21:16:34 GMT 2014


Modules like Plack::Middleware::StackTrace save a reference to the
guard object when a (nested) rollback exception is thrown during
destruction resulting in the destructor being called twice. Inactivate
the guard after the first rollback.
You can merge this Pull Request by running:

  git pull https://github.com/nwellnhof/dbix-class txnscopeguard-fix

Or you can view, comment on it, or merge it online at:

  https://github.com/dbsrgits/dbix-class/pull/63

-- Commit Summary --

  * Don't rollback when TxnScopeGuard dtor is run twice

-- File Changes --

    M lib/DBIx/Class/Storage/TxnScopeGuard.pm (6)

-- Patch Links --

https://github.com/dbsrgits/dbix-class/pull/63.patch
https://github.com/dbsrgits/dbix-class/pull/63.diff

---
Reply to this email directly or view it on GitHub:
https://github.com/dbsrgits/dbix-class/pull/63
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scsys.co.uk/pipermail/dbix-class-devel/attachments/20141022/ce7e3c02/attachment.htm>


More information about the DBIx-Class-Devel mailing list