Commit aa52ab68 authored by Aurel's avatar Aurel

make sure to know the storage node address before connecting to it for replication


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@594 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 7a09c709
......@@ -299,6 +299,9 @@ class Replicator(object):
return
addr = node.getServer()
if addr is None:
logging.error("no address known for the selected node %s" %(node.getUUID()))
return
if self.current_connection is not None:
if self.current_connection.getAddress() == addr:
# I can reuse the same connection.
......
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