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

Jeremy Hylton jeremy at zope.com
Wed Apr 23 17:36:03 EDT 2003


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

Modified Files:
	Connection.py 
Log Message:
Be sure to clear the original cache when calling resetCache().

XXX I've got no idea what this is actually supposed to do.  It may be
that clearing the old cache isn't safe, but only if it never was.  If
a non-ghost object is in the cache, it seems that attempts to use it
will go through the wrong cache.


=== ZODB3/ZODB/Connection.py 1.90 => 1.91 ===
--- ZODB3/ZODB/Connection.py:1.90	Wed Apr 23 16:05:51 2003
+++ ZODB3/ZODB/Connection.py	Wed Apr 23 16:36:02 2003
@@ -252,6 +252,7 @@
         self._code_timestamp = global_code_timestamp
         self._invalidated.clear()
         orig_cache = self._cache
+        orig_cache.clear()
         self._cache = cache = PickleCache(self, orig_cache.cache_size)
         self._incrgc = self.cacheGC = cache.incrgc
 




More information about the Zodb-checkins mailing list