Commit 7147f291 authored by Grégory Wisniewski's avatar Grégory Wisniewski

During election, node timeout applies or all non-running nodes.

So that unknown nodes, to which no connection succeed for the current election, are dropped from election process.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1549 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 78dab7fd
......@@ -183,8 +183,7 @@ class Application(object):
if current_time >= t + 1:
t = current_time
for node in self.nm.getMasterList():
if node.isTemporarilyDown() \
and node.getLastStateChange() + \
if not node.isRunning() and node.getLastStateChange() + \
expiration < current_time:
logging.info('%s is down' % (node, ))
node.setDown()
......
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