[Zodb-checkins] CVS: Zope3/lib/python/ZODB - FileStorage.py:1.75.10.6
Jeremy Hylton
jeremy@zope.com
Tue, 2 Apr 2002 12:13:32 -0500
Update of /cvs-repository/Zope3/lib/python/ZODB
In directory cvs.zope.org:/tmp/cvs-serv9175
Modified Files:
Tag: Zope-3x-branch
FileStorage.py
Log Message:
Add comment about revision numbers and abort/commit version.
=== Zope3/lib/python/ZODB/FileStorage.py 1.75.10.5 => 1.75.10.6 ===
h = self._file.read(DATA_VERSION_HDR_LEN)
# h -> oid, serial, prev(oid), tloc, vlen, plen, pnv, pv
- oid=h[:8]
- pnv=h[-16:-8]
+ oid = h[:8]
+ pnv = h[-16:-8]
if self._index.get(oid) == srcpos:
# This is a current record!
self._tindex[oid] = here
oids.append(oid)
+ # XXX should write a new revision number here, right?
self._tfile.write(h[:16] + spos + middle)
if dest:
self._tvindex[dest] = here