[Zope3-checkins] CVS: Zope3/src/zodb/storage - file.py:1.13

Jeremy Hylton jeremy@zope.com
Thu, 13 Mar 2003 17:04:40 -0500


Update of /cvs-repository/Zope3/src/zodb/storage
In directory cvs.zope.org:/tmp/cvs-serv32268/storage

Modified Files:
	file.py 
Log Message:
Pass the right version to exception.


=== Zope3/src/zodb/storage/file.py 1.12 => 1.13 ===
--- Zope3/src/zodb/storage/file.py:1.12	Thu Mar 13 16:32:28 2003
+++ Zope3/src/zodb/storage/file.py	Thu Mar 13 17:04:38 2003
@@ -812,6 +812,7 @@
                 # Keep looking for serial
                 pos = h.prev
                 if not pos:
+                    # XXX serial?
                     raise POSKeyError(serial)
                 continue
 
@@ -849,7 +850,7 @@
                 h = self._read_data_header(old)
                 if h.version:
                     if version != h.version:
-                        raise interfaces.VersionLockError(oid, version)
+                        raise interfaces.VersionLockError(oid, h.version)
                     pnv = h.pnv
 
                 if serial != h.serial: