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

Jeremy Hylton jeremy at zope.com
Mon Jan 5 22:44:54 EST 2004


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

Modified Files:
	Connection.py 
Log Message:
Make sure _setstate_noncurrent() returns True on success.

Bug reported by Dieter Maurer.

The change required several of the read-conflict tests to be updated
to specify that they don't want MVCC support.  It was basically
accidental that they passed before this change.  Note that we don't
have any tests of code that gets a read conflict in MVCC mode, which
would only be possible after a pack() or in some other weird case.


=== ZODB3/ZODB/Connection.py 1.111 => 1.112 ===
--- ZODB3/ZODB/Connection.py:1.111	Mon Jan  5 22:05:45 2004
+++ ZODB3/ZODB/Connection.py	Mon Jan  5 22:44:53 2004
@@ -532,6 +532,7 @@
             self._noncurrent[obj._p_oid] = True
         self._reader.setGhostState(obj, data)
         obj._p_serial = start
+        return True
 
     def _handle_independent(self, obj):
         # Helper method for setstate() handles possibly independent objects




More information about the Zodb-checkins mailing list