Merge lp:~allenap/maas/transactional-close-connections-on-outermost-exit-only into lp:~maas-committers/maas/trunk
Proposed by
Gavin Panella
Status: | Merged |
---|---|
Approved by: | Graham Binns |
Approved revision: | no longer in the source branch. |
Merged at revision: | 2941 |
Proposed branch: | lp:~allenap/maas/transactional-close-connections-on-outermost-exit-only |
Merge into: | lp:~maas-committers/maas/trunk |
Diff against target: |
55 lines (+23/-2) 2 files modified
src/maasserver/utils/async.py (+4/-1) src/maasserver/utils/tests/test_async.py (+19/-1) |
To merge this branch: | bzr merge lp:~allenap/maas/transactional-close-connections-on-outermost-exit-only |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Graham Binns (community) | Approve | ||
Review via email:
|
Commit message
When using the transactional decorator, only close old connections when leaving the outermost atomic block.
Previously it would close connections at all levels, causing transactions to be silently aborted.
To post a comment you must log in.