Commit d48572dc authored by Grégory Wisniewski's avatar Grégory Wisniewski

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.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2197 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 971fb158
...@@ -176,6 +176,9 @@ class Application(object): ...@@ -176,6 +176,9 @@ class Application(object):
while True: while True:
self.ready = False self.ready = False
self.operational = False self.operational = False
if self.replicator is not None:
# stop the replicator
self.replicator.reset()
if self.master_node is None: if self.master_node is None:
# look for the primary master # look for the primary master
self.connectToPrimary() self.connectToPrimary()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment