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

Jeremy Hylton jeremy@zope.com
Fri, 15 Mar 2002 01:58:05 -0500


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

Modified Files:
      Tag: zeo-1_0-debug-branch
	StorageServer.py 
Log Message:
log info about distribution commit lock.

Log messages when a client is added to the waiting list and when it is
removed.


=== StandaloneZODB/ZEO/StorageServer.py 1.34.2.2 => 1.34.2.3 ===
                          # sort of messy way to add tag 'closed' to
                          # connections that are closed
-                         (self.__closed is None and '>' or 'closed>'))
+                         (self.__closed is None and '>' or ' closed>'))
 
     def close(self):
         t=self._transaction
@@ -464,11 +464,15 @@
 
     def commitlock_suspend(self, resume, args, onerror):
         self.__storage._waiting.append((resume, args, onerror))
+        log.blather("suspend %s.  %d queued clients" % (resume.im_self,
+                                            len(self.__storage._waiting)))
 
     def commitlock_resume(self):
         waiting = self.__storage._waiting
         while waiting:
             resume, args, onerror = waiting.pop(0)
+            log.blather("resuming queued client %s, %d still queued" % (
+                resume.im_self, len(waiting)))
             try:
                 if apply(resume, args):
                     break