[Zodb-checkins] CVS: ZODB3/ZODB - FileStorage.py:1.129
Jeremy Hylton
jeremy@zope.com
Mon, 17 Mar 2003 13:58:31 -0500
Update of /cvs-repository/ZODB3/ZODB
In directory cvs.zope.org:/tmp/cvs-serv12564
Modified Files:
FileStorage.py
Log Message:
Fix awful mistake in commitVersion().
Don't ever stop after the first object. It leaves all the other
objects in the version unmodified.
=== ZODB3/ZODB/FileStorage.py 1.128 => 1.129 ===
--- ZODB3/ZODB/FileStorage.py:1.128 Mon Mar 17 13:52:50 2003
+++ ZODB3/ZODB/FileStorage.py Mon Mar 17 13:58:30 2003
@@ -567,9 +567,6 @@
here += heredelta
current_oids[oid] = 1
- # Once we've found the data we are looking for,
- # we can stop chasing backpointers.
- break
else:
# Hm. This is a non-current record. Is there a
@@ -1495,7 +1492,7 @@
referencesf(p, rootl)
pindex[oid]=index[oid]
- except:
+ except KeyError:
pindex[oid]=0
error('Bad reference to %s', `(oid,v)`)
# XXX This try/except frequently masks bugs in the