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

Jeremy Hylton jeremy at zope.com
Sun Sep 14 16:53:46 EDT 2003


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

Modified Files:
      Tag: ZODB3-3_2-branch
	StorageServer.py 
Log Message:
Only call _handle_waiting() if this txn held the lock.

If this txn gets aborted before it acquires the lock, then it should
start nothing.


=== ZODB3/ZEO/StorageServer.py 1.98.2.5 => 1.98.2.6 ===
--- ZODB3/ZEO/StorageServer.py:1.98.2.5	Sun Sep 14 16:34:13 2003
+++ ZODB3/ZEO/StorageServer.py	Sun Sep 14 16:53:45 2003
@@ -403,9 +403,9 @@
             self.timeout.end(self)
             self.stats.lock_time = None
             self.log("Transaction released storage lock")
-        # _handle_waiting() can start another transaction (by
-        # restarting a waiting one) so must be done last
-        self._handle_waiting()
+            # _handle_waiting() can start another transaction (by
+            # restarting a waiting one) so must be done last
+            self._handle_waiting()
 
     def _abort(self):
         # called when a connection is closed unexpectedly




More information about the Zodb-checkins mailing list