Commit 4d37947b authored by Guido van Rossum's avatar Guido van Rossum

Merge restore() fix from release branch.

parent a323bb06
......@@ -115,7 +115,7 @@
# may have a back pointer to a version record or to a non-version
# record.
#
__version__='$Revision: 1.105 $'[11:-2]
__version__='$Revision: 1.106 $'[11:-2]
import base64
from cPickle import Pickler, Unpickler, loads
......@@ -778,6 +778,9 @@ class FileStorage(BaseStorage.BaseStorage,
h)
if doid != oid:
raise CorruptedDataError, h
if vlen > 0:
# non-version data pointer
pnv = self._file.read(8)
# Calculate the file position in the temporary file
here = self._pos + self._tfile.tell() + self._thl
# And update the temp file index
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment