Commit b6ac40f1 authored by Jim Fulton's avatar Jim Fulton

Uses an unwrapped transaction manager

Use the regular transaction manager wrapped by the thread-transaction
manager so we can call unregisterSynch when close is called from
another thread, typically during database shutdown.
parent dc65b97e
...@@ -884,7 +884,10 @@ class Connection(ExportImport, object): ...@@ -884,7 +884,10 @@ class Connection(ExportImport, object):
""" """
if transaction_manager is None: if transaction_manager is None:
transaction_manager = transaction.manager # The .manager bit below unwraps the threaded
# manager so we can call unregisterSynch in close
# when close is called from another thread.
transaction_manager = transaction.manager.manager
self.transaction_manager = transaction_manager self.transaction_manager = transaction_manager
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment