[Zodb-checkins] CVS: ZODB3/ZODB - FileStorage.py:1.105.2.21
Jeremy Hylton
jeremy at zope.com
Tue Aug 26 12:56:21 EDT 2003
Update of /cvs-repository/ZODB3/ZODB
In directory cvs.zope.org:/tmp/cvs-serv28473
Modified Files:
Tag: ZODB3-3_1-branch
FileStorage.py
Log Message:
Removed _loada after tip from Tim. It was only used by the old pack.
=== ZODB3/ZODB/FileStorage.py 1.105.2.20 => 1.105.2.21 ===
--- ZODB3/ZODB/FileStorage.py:1.105.2.20 Fri Aug 22 16:56:08 2003
+++ ZODB3/ZODB/FileStorage.py Tue Aug 26 11:56:20 2003
@@ -650,28 +650,6 @@
def getSize(self):
return self._pos
- def _loada(self, oid, _index, file):
- "Read any version and return the version"
- try:
- pos=_index[oid]
- except KeyError:
- raise POSKeyError(oid)
- file.seek(pos)
- read=file.read
- 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
- version=read(vlen)
- else:
- version=''
- nv=0
-
- if plen != z64:
- return read(U64(plen)), version, nv
- return _loadBack(file, oid, read(8))[0], version, nv
-
def _load(self, oid, version, _index, file):
try:
pos = _index[oid]
More information about the Zodb-checkins
mailing list