[Zodb-checkins] CVS: ZEO/ZEO - StorageServer.py:1.32.6.8

Shane Hathaway shane@cvs.zope.org
Thu, 28 Mar 2002 12:25:21 -0500


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

Modified Files:
      Tag: Standby-branch
	StorageServer.py 
Log Message:
Invalidations may occur before any connections are made, so the invalidate()
method has to be ready for this situation.


=== ZEO/ZEO/StorageServer.py 1.32.6.7 => 1.32.6.8 ===
 
     def invalidate(self, conn, storage_id, invalidated=(), info=0):
-        for p in self.connections[storage_id]:
+        for p in self.connections.get(storage_id, ()):
             if invalidated and p is not conn:
                 p.client.Invalidate(invalidated)
             else: