[Zodb-checkins] CVS: Zope/lib/python/ZODB - Connection.py:1.81

Shane Hathaway shane@zope.com
Tue, 14 Jan 2003 10:20:54 -0500


Update of /cvs-repository/Zope/lib/python/ZODB
In directory cvs.zope.org:/tmp/cvs-serv21180

Modified Files:
	Connection.py 
Log Message:
Fixed the _resetCache() bug.  The garbage collection attributes weren't being
updated, which resulted in one whole cache being kept for no reason.


=== Zope/lib/python/ZODB/Connection.py 1.80 => 1.81 ===
--- Zope/lib/python/ZODB/Connection.py:1.80	Tue Dec  3 13:36:29 2002
+++ Zope/lib/python/ZODB/Connection.py	Tue Jan 14 10:20:21 2003
@@ -217,7 +217,8 @@
         self._code_timestamp = global_code_timestamp
         self._invalidated.clear()
         orig_cache = self._cache
-        self._cache = PickleCache(self, orig_cache.cache_size)
+        self._cache = cache = PickleCache(self, orig_cache.cache_size)
+        self._incrgc = self.cacheGC = cache.incrgc
 
     def abort(self, object, transaction):
         """Abort the object in the transaction.