[Neo-report] r2070 gregory - /trunk/neo/storage/app.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed May 5 18:48:13 CEST 2010


Author: gregory
Date: Wed May  5 18:48:12 2010
New Revision: 2070

Log:
Drop client connections when leaving operation state.

And clear queued event.

Modified:
    trunk/neo/storage/app.py

Modified: trunk/neo/storage/app.py
==============================================================================
--- trunk/neo/storage/app.py [iso-8859-1] (original)
+++ trunk/neo/storage/app.py [iso-8859-1] Wed May  5 18:48:12 2010
@@ -166,6 +166,11 @@
             node = self.nm.getByUUID(self.uuid)
             if node is not None and node.isHidden():
                 self.wait()
+            # This is a queue of events used to delay operations due to locks.
+            self.event_queue = deque()
+            # drop any client node
+            for node in self.nm.getClientList():
+                node.getConnection().close()
             try:
                 self.verifyData()
                 self.initialize()
@@ -262,9 +267,6 @@
         self.dm.dropUnfinishedData()
         self.tm.reset()
 
-        # This is a queue of events used to delay operations due to locks.
-        self.event_queue = deque()
-
         # The replicator.
         self.replicator = Replicator(self)
 





More information about the Neo-report mailing list