Commit 80387fd3 authored by Jeremy Hylton's avatar Jeremy Hylton

Use the correct offset for seek in load().

p can be negative, which merely means the offset is in the other file.
parent ddc3aaac
...@@ -97,7 +97,7 @@ with '\0\0\0\0'. ...@@ -97,7 +97,7 @@ with '\0\0\0\0'.
If var is not writable, then temporary files are used for If var is not writable, then temporary files are used for
file 0 and file 1. file 0 and file 1.
$Id: ClientCache.py,v 1.33 2002/09/04 18:06:44 jeremy Exp $ $Id: ClientCache.py,v 1.34 2002/09/04 18:09:14 jeremy Exp $
""" """
import os import os
...@@ -311,7 +311,7 @@ class ClientCache: ...@@ -311,7 +311,7 @@ class ClientCache:
v = vheader[:-4] v = vheader[:-4]
if version != v: if version != v:
if dlen: if dlen:
seek(p+27) seek(ap+27)
data = read(dlen) data = read(dlen)
self._trace(0x2C, oid, version, h[19:], dlen) self._trace(0x2C, oid, version, h[19:], dlen)
return data, h[19:] return data, h[19:]
......
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