Commit 79c7076d authored by Jeremy Hylton's avatar Jeremy Hylton

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

parent 2ae0bf9c
......@@ -293,6 +293,18 @@ Error cases:
- storage doesn't have an earlier 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
......
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