[Zope-dev] Re: Zope Head (2.8) breaks "refresh"

Jeremy Hylton jeremy at ZOPE.COM
Mon Dec 8 15:37:24 EST 2003


On Mon, 2003-12-08 at 15:36, Dieter Maurer wrote:
> Dieter Maurer wrote at 2003-12-7 14:15 +0100:
> >Playing with Zope Head (as of 2003-12-04) revealed problems with
> >refresh.
> 
> Turns out to be a bug in "ZODB.Connection.Connection._setDB":
> 
>   "ConnectionObjectReader" used the old cache while
>   "refresh" cause a new cache to be installed later
>   in "_resetCache".
> 
> Patch attached.

The patch doesn't make sense:

--- ZODB/Connection.py~ 2003-11-28 17:44:49.000000000 +0100
+++ ZODB/Connection.py  2003-12-08 21:26:49.000000000 +0100
@@ -158,8 +158,6 @@
-        self._reader = ConnectionObjectReader(self, self._cache,
-                                              self._db._classFactory)
@@ -168,6 +166,8 @@
+        self._reader = ConnectionObjectReader(self, self._cache,
+                                              self._db._classFactory)

Is there any difference between these two execept for whitespace?

Jeremy





More information about the Zope-Dev mailing list