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

Jeremy Hylton cvs-admin at zope.org
Mon Dec 8 16:12:26 EST 2003


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

Modified Files:
	Connection.py 
Log Message:
Make sure the ConnectionObjectReader uses cache created after _resetCache().

Patch from Dieter Maurer.


=== ZODB3/ZODB/Connection.py 1.102 => 1.103 ===
--- ZODB3/ZODB/Connection.py:1.102	Fri Nov 28 11:44:49 2003
+++ ZODB3/ZODB/Connection.py	Mon Dec  8 16:12:25 2003
@@ -158,8 +158,6 @@
         Any objects modified since the last transaction are invalidated.
         """
         self._db = odb
-        self._reader = ConnectionObjectReader(self, self._cache,
-                                              self._db._classFactory)
         self._storage = odb._storage
         self._sortKey = odb._storage.sortKey
         self.new_oid = odb._storage.new_oid
@@ -168,6 +166,8 @@
             self._resetCache()
         else:
             self._flush_invalidations()
+        self._reader = ConnectionObjectReader(self, self._cache,
+                                              self._db._classFactory)
         self._opened = time()
 
         return self




More information about the Zodb-checkins mailing list