Commit 57539936 authored by Jeremy Hylton's avatar Jeremy Hylton

Cleanup two cycles involving transactions. Where's the 3rd?

parent c9c44a7e
...@@ -293,6 +293,18 @@ Error cases: ...@@ -293,6 +293,18 @@ Error cases:
- storage doesn't have an earlier revision - storage doesn't have an earlier revision
- MVCC returns current revision - MVCC returns current revision
Cleanup
-------
The setLocalTransaction() feature creates cyclic trash involving the
Connection and Transaction. The Transaction has an __del__ method,
which prevents the cycle from being collected. There's no API for
clearing the Connection's local transaction.
>>> cn._transaction = None
>>> cn1._transaction = None
>>> cn2._transaction = None
""" """
import doctest import doctest
......
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