[Zope-Checkins] CVS: ZODB3/ZODB - Connection.py:1.100.2.8

Jeremy Hylton jeremy at zope.com
Fri Dec 19 11:10:07 EST 2003


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

Modified Files:
      Tag: ZODB3-mvcc-2-branch
	Connection.py 
Log Message:
Don't enable MVCC in version connections.


=== ZODB3/ZODB/Connection.py 1.100.2.7 => 1.100.2.8 ===
--- ZODB3/ZODB/Connection.py:1.100.2.7	Fri Dec 19 10:08:59 2003
+++ ZODB3/ZODB/Connection.py	Fri Dec 19 11:10:05 2003
@@ -112,7 +112,9 @@
         # the upper bound on transactions visible to this connection.
         # That is, all object revisions must be written before _txn_time.
         # If it is None, then the current revisions are acceptable.
-        self._mvcc = mvcc
+        # If the connection is in a version, mvcc will be disabled, because
+        # loadBefore() only returns non-version data.
+        self._mvcc = mvcc and not version
         self._txn_time = None
 
     def getTransaction(self):




More information about the Zope-Checkins mailing list