[Zodb-checkins] CVS: ZODB3/ZODB - Connection.py:1.98.4.4

Jeremy Hylton jeremy at zope.com
Wed Oct 1 15:31:00 EDT 2003


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

Modified Files:
      Tag: Zope-2_7-branch
	Connection.py 
Log Message:
Revert previous checkin.  

The change to cPickleCache was sufficient to stop the leak.


=== ZODB3/ZODB/Connection.py 1.98.4.3 => 1.98.4.4 ===
--- ZODB3/ZODB/Connection.py:1.98.4.3	Wed Oct  1 15:25:34 2003
+++ ZODB3/ZODB/Connection.py	Wed Oct  1 15:30:59 2003
@@ -140,9 +140,6 @@
             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)
@@ -229,10 +226,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 Zodb-checkins mailing list