Commit 57ab3368 authored by Vincent Pelletier's avatar Vincent Pelletier

Add missing parameter to connectToPrimaryMasterNode.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@262 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent e755c9f5
......@@ -103,7 +103,7 @@ class ClientEventHandler(EventHandler):
logging.critical("connection to primary master node failed")
if self.dispatcher.connecting_to_master_node == 0:
logging.critical("trying reconnection to master node...")
self.dispatcher.connectToPrimaryMasterNode(app)
self.dispatcher.connectToPrimaryMasterNode(app, conn)
else:
# Connection to a storage node failed
node = app.nm.getNodeByServer(conn.getAddress())
......@@ -126,7 +126,7 @@ class ClientEventHandler(EventHandler):
app.primary_master_node = None
if self.dispatcher.connecting_to_master_node == 0:
logging.critical("trying reconnection to master node...")
self.dispatcher.connectToPrimaryMasterNode(app)
self.dispatcher.connectToPrimaryMasterNode(app, conn)
else:
node = app.nm.getNodeByServer(conn.getAddress())
if isinstance(node, StorageNode):
......@@ -147,7 +147,7 @@ class ClientEventHandler(EventHandler):
logging.critical("connection timeout to primary master node expired")
if self.dispatcher.connecting_to_master_node == 0:
logging.critical("trying reconnection to master node...")
self.dispatcher.connectToPrimaryMasterNode(app)
self.dispatcher.connectToPrimaryMasterNode(app, conn)
else:
node = app.nm.getNodeByServer(conn.getAddress())
if isinstance(node, StorageNode):
......@@ -167,7 +167,7 @@ class ClientEventHandler(EventHandler):
logging.critical("primary master node is broken")
if self.dispatcher.connecting_to_master_node == 0:
logging.critical("trying reconnection to master node...")
self.dispatcher.connectToPrimaryMasterNode(app)
self.dispatcher.connectToPrimaryMasterNode(app, conn)
else:
node = app.nm.getNodeByServer(conn.getAddress())
if isinstance(node, StorageNode):
......
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