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

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Aug 4 10:53:53 CEST 2010


Author: gregory
Date: Wed Aug  4 10:53:53 2010
New Revision: 2197

Log:
Reset the replicator when leaving the operational state.

The replicator must be stopped to avoid storages request unfinished
transactions to the master while it is not able to answer. This prevent
from considering the storage as broken.

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 Aug  4 10:53:53 2010
@@ -176,6 +176,9 @@ class Application(object):
         while True:
             self.ready = False
             self.operational = False
+            if self.replicator is not None:
+              # stop the replicator
+              self.replicator.reset()
             if self.master_node is None:
                 # look for the primary master
                 self.connectToPrimary()





More information about the Neo-report mailing list