[Zodb-checkins] CVS: Zope2/lib/python/ZODB - FileStorage.py:1.59

shane@digicool.com shane@digicool.com
Wed, 23 May 2001 15:03:29 -0400 (EDT)


Update of /cvs-repository/Zope2/lib/python/ZODB
In directory korak.digicool.com:/tmp/cvs-serv14374

Modified Files:
	FileStorage.py 
Log Message:
commitVersion(): A rare circumstance was causing versions to be only
partially committed.  If an object is stored more than once in a
version during a single transaction (which is borderline behavior anyway)
and that object has been modified for the first time in the version,
the old logic would stop prematurely.



--- Updated File FileStorage.py in package Zope2/lib/python/ZODB --
--- FileStorage.py	2001/05/10 20:13:06	1.58
+++ FileStorage.py	2001/05/23 19:03:29	1.59
@@ -513,9 +513,7 @@
                     write(abort and pnv or spos) # data backpointer to src data
                     here=here+heredelta
 
-                    if h[16:24] != pnv:
-                        # This is not the first current record, so mark it
-                        current_oids[oid]=1
+                    current_oids[oid]=1
 
                 else:
                     # Hm.  This is a non-current record.  Is there a