[Zope-Checkins] CVS: ZODB3/ZEO - StorageServer.py:1.74.2.6.4.7

Jeremy Hylton jeremy@zope.com
Tue, 17 Dec 2002 15:51:53 -0500


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

Modified Files:
      Tag: ZODB3-fast-restart-branch
	StorageServer.py 
Log Message:
Handle the case of an empty invq


=== ZODB3/ZEO/StorageServer.py 1.74.2.6.4.6 => 1.74.2.6.4.7 ===
--- ZODB3/ZEO/StorageServer.py:1.74.2.6.4.6	Tue Dec 17 15:41:48 2002
+++ ZODB3/ZEO/StorageServer.py	Tue Dec 17 15:51:52 2002
@@ -185,9 +185,14 @@
         of invalidations for tid.  In this case, client should
         do full cache verification.
         """
+
+        if not self.invq:
+            return None, ()
+        
         earliest_tid = self.invq[0][0]
         if earliest_tid > tid:
             return None, ()
+        
         oids = {}
         for tid, L in self.invq:
             for key in L: