[Zope-Checkins] CVS: ZODB3/ZODB - Connection.py:1.98.4.3

Jeremy Hylton jeremy at zope.com
Wed Oct 1 15:25:35 EDT 2003


Update of /cvs-repository/ZODB3/ZODB
In directory cvs.zope.org:/tmp/cvs-serv32701/ZODB

Modified Files:
      Tag: Zope-2_7-branch
	Connection.py 
Log Message:
Explicitly release a few more references in _breakcr().

This is a blind search for a way to release the references that GC
cannot find.


=== ZODB3/ZODB/Connection.py 1.98.4.2 => 1.98.4.3 ===
--- ZODB3/ZODB/Connection.py:1.98.4.2	Mon Sep 15 17:26:56 2003
+++ ZODB3/ZODB/Connection.py	Wed Oct  1 15:25:34 2003
@@ -140,6 +140,9 @@
             self._cache.clear()
         self._incrgc = None
         self.cacheGC = None
+        self._db = None
+        self._storage = None
+        self._sortKey = None
 
     def __getitem__(self, oid, tt=type(())):
         obj = self._cache.get(oid, None)
@@ -226,10 +229,10 @@
 
         Any objects modified since the last transaction are invalidated.
         """
-        self._db=odb
-        self._storage=s=odb._storage
+        self._db = odb
+        self._storage = s = odb._storage
         self._sortKey = odb._storage.sortKey
-        self.new_oid=s.new_oid
+        self.new_oid = s.new_oid
         if self._code_timestamp != global_code_timestamp:
             # New code is in place.  Start a new cache.
             self._resetCache()




More information about the Zope-Checkins mailing list