[Zodb-checkins] CVS: ZODB3/BDBStorage - BDBFullStorage.py:1.75.2.5

Jeremy Hylton cvs-admin at zope.org
Tue Nov 25 00:48:06 EST 2003


Update of /cvs-repository/ZODB3/BDBStorage
In directory cvs.zope.org:/tmp/cvs-serv18313/BDBStorage

Modified Files:
      Tag: ZODB3-mvcc-2-branch
	BDBFullStorage.py 
Log Message:
Return the revid not the tid for serialno.

The revid is used to fetch the pickle, so we know it's the tid of the
transaction that wrote the original data.  This is a lot easier to
understand than FileStorage :-).


=== ZODB3/BDBStorage/BDBFullStorage.py 1.75.2.4 => 1.75.2.5 ===
--- ZODB3/BDBStorage/BDBFullStorage.py:1.75.2.4	Mon Nov 24 17:40:54 2003
+++ ZODB3/BDBStorage/BDBFullStorage.py	Tue Nov 25 00:48:02 2003
@@ -997,7 +997,7 @@
         tid = key[8:]
         # XXX What about abortVersion?  Does that give a different
         # serial no than tid?
-        return data, tid, tid, end_tid
+        return data, revid, tid, end_tid
 
     def _getSerialAndTidMissingOk(self, oid):
         # For the object, return the curent serial number and transaction id




More information about the Zodb-checkins mailing list