[Zodb-checkins] CVS: Zope/lib/python/ZODB - FileStorage.py:1.90.2.1
Jeremy Hylton
jeremy@zope.com
Fri, 10 May 2002 16:27:18 -0400
Update of /cvs-repository/Zope/lib/python/ZODB
In directory cvs.zope.org:/tmp/cvs-serv14309/lib/python/ZODB
Modified Files:
Tag: TestIndexDS9-branch
FileStorage.py
Log Message:
Commit recent changes from the Zope trunk.
Of particular interest: setup.py! (works with Python 2.3)
=== Zope/lib/python/ZODB/FileStorage.py 1.90 => 1.90.2.1 ===
pos=pos+8
- _maxoid = max(tindex.keys()) # in 2.2, just max(tindex)
- maxoid = max(_maxoid, maxoid)
- index.update(tindex)
-
- tindex.clear()
+ if tindex: # avoid the pathological empty transaction case
+ _maxoid = max(tindex.keys()) # in 2.2, just max(tindex)
+ maxoid = max(_maxoid, maxoid)
+ index.update(tindex)
+ tindex.clear()
return pos, maxoid, ltid