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

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


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

Modified Files:
      Tag: ZODB3-fast-restart-branch
	StorageServer.py 
Log Message:
Add some debugging log calls for invq.


=== ZODB3/ZEO/StorageServer.py 1.74.2.6.4.7 => 1.74.2.6.4.8 ===
--- ZODB3/ZEO/StorageServer.py:1.74.2.6.4.7	Tue Dec 17 15:51:52 2002
+++ ZODB3/ZEO/StorageServer.py	Tue Dec 17 16:15:44 2002
@@ -36,6 +36,7 @@
 from ZODB.POSException import TransactionError, ReadOnlyError
 from ZODB.referencesf import referencesf
 from ZODB.Transaction import Transaction
+from ZODB.utils import u64
 
 _label = "ZSS" # Default label used for logging.
 
@@ -187,11 +188,13 @@
         """
 
         if not self.invq:
-            return None, ()
+            log("invq empty")
+            return None, []
         
         earliest_tid = self.invq[0][0]
         if earliest_tid > tid:
-            return None, ()
+            log("tid to old for invq %s < %s" % (u64(tid), u64(earliest_tid)))
+            return None, []
         
         oids = {}
         for tid, L in self.invq:
@@ -357,6 +360,8 @@
         invtid, invlist = self.server.get_invalidations(tid)
         if invtid is None:
             return None
+        self.log("Return %d invalidations up to tid %s"
+                 % (len(invlist), u64(invtid)))
         return invtid, invlist
 
     def zeoVerify(self, oid, s, sv):