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

Replicator don't have to search through the connection list to find the master

connection.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@847 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 05c3a724
......@@ -91,13 +91,7 @@ class Replicator(object):
self.waiting_for_unfinished_tids = False
self.unfinished_tid_list = None
self.replication_done = True
# Find a connection to a primary master node.
uuid = app.primary_master_node.getUUID()
for conn in app.em.getConnectionList():
if isinstance(conn, ClientConnection) and conn.getUUID() == uuid:
self.primary_master_connection = conn
break
self.primary_master_connection = app.master_conn
def reset(self):
"""Reset attributes to restart replicating."""
......
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