[Zope3-checkins] CVS: ZODB4/ZODB - FileStorage.py:1.109

Jeremy Hylton jeremy@zope.com
Tue, 3 Dec 2002 18:45:03 -0500


Update of /cvs-repository/ZODB4/ZODB
In directory cvs.zope.org:/tmp/cvs-serv28579

Modified Files:
	FileStorage.py 
Log Message:
Add seek-avoidance change from ZODB3


=== ZODB4/ZODB/FileStorage.py 1.108 => 1.109 ===
--- ZODB4/ZODB/FileStorage.py:1.108	Tue Dec  3 13:38:02 2002
+++ ZODB4/ZODB/FileStorage.py	Tue Dec  3 18:45:02 2002
@@ -572,8 +572,8 @@
         h=read(DATA_HDR_LEN)
         doid,serial,prev,tloc,vlen,plen = unpack(DATA_HDR, h)
         if vlen:
-            nv = read(8) != z64
-            file.seek(8,1) # Skip previous version record pointer
+            assert read(8) != z64
+            read(8) # Skip previous version record pointer
             version=read(vlen)
         else:
             version=''