[Zodb-checkins] CVS: ZODB3/ZEO - ClientCache.py:1.33

Jeremy Hylton jeremy@zope.com
Wed, 4 Sep 2002 14:06:45 -0400


Update of /cvs-repository/ZODB3/ZEO
In directory cvs.zope.org:/tmp/cvs-serv11645/ZEO

Modified Files:
	ClientCache.py 
Log Message:
Use the correct offset for seek in invalidate.

p can be negative, which merely means the offset is in the other file.


=== ZODB3/ZEO/ClientCache.py 1.32 => 1.33 ===
--- ZODB3/ZEO/ClientCache.py:1.32	Fri Aug 30 16:02:42 2002
+++ ZODB3/ZEO/ClientCache.py	Wed Sep  4 14:06:44 2002
@@ -250,7 +250,7 @@
                     % (U64(oid), U64(h[:8]), ap, p < 0))
                 del self._index[oid]
                 return None
-            f.seek(p+8) # Switch from reading to writing
+            f.seek(ap+8) # Switch from reading to writing
             if version and h[15:19] != '\0\0\0\0':
                 self._trace(0x1A, oid, version)
                 # There's still relevant non-version data in the cache record