SVN: ZODB/branches/jim-thready/src/ZEO/ClientStorage.py Fix delete handling.

Jim Fulton <[email protected]>
Newsgroups gmane.comp.python.zope.zodb.cvs
Message-ID <[email protected]>
Log message for revision 108446:
  Fix delete handling.
  

Changed:
  U   ZODB/branches/jim-thready/src/ZEO/ClientStorage.py

-=-
Modified: ZODB/branches/jim-thready/src/ZEO/ClientStorage.py
===================================================================
--- ZODB/branches/jim-thready/src/ZEO/ClientStorage.py	2010-01-24 19:02:32 UTC (rev 108445)
+++ ZODB/branches/jim-thready/src/ZEO/ClientStorage.py	2010-01-24 19:02:35 UTC (rev 108446)
@@ -1202,12 +1202,15 @@
             self._cache.invalidate(oid, tid, False)
 
         for oid, data in self._tbuf:
-            s = self._seriald[oid] # assigning here asserts that oid in seriald
             # If data is None, we just invalidate.
             if data is not None:
+                s = self._seriald[oid]
                 if s != ResolvedSerial:
                     assert s == tid, (s, tid)
                     self._cache.store(oid, s, None, data)
+            else:
+                # object deletion
+                self._cache.invalidate(oid, tid, False)
 
         if self.fshelper is not None:
             blobs = self._tbuf.blobs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.