[Zope-Checkins] CVS: Zope/lib/python/ZODB - Connection.py:1.72.6.2

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


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

Modified Files:
      Tag: Zope-2_6-branch
	Connection.py 
Log Message:
Fixed a refresh bug.  When the ZODB cache was reset, the garbage collection
attributes of Connection weren't getting updated.  Fixed and added a test.  


=== Zope/lib/python/ZODB/Connection.py 1.72.6.1 => 1.72.6.2 ===
--- Zope/lib/python/ZODB/Connection.py:1.72.6.1	Tue Nov 12 16:13:58 2002
+++ Zope/lib/python/ZODB/Connection.py	Tue Jan 14 10:18:17 2003
@@ -224,7 +224,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.