Commit ad90889d authored by Vincent Pelletier's avatar Vincent Pelletier

Fix admin node knowing a disconnected primary master as being in RUNNING_STATE...

Fix admin node knowing a disconnected primary master as being in RUNNING_STATE (it won't notify its own disconnection !).


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@1051 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent ea58c9cb
......@@ -129,6 +129,9 @@ class MasterEventHandler(EventHandler):
app.master_conn = None
app.master_node = None
app.uuid = None
node = app.nm.getNodeByUUID(conn.getUUID())
assert node is not None
node.setState(protocol.TEMPORARILY_DOWN_STATE)
raise PrimaryFailure
def connectionFailed(self, conn):
......
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