Commit 0c84ef82 authored by Grégory Wisniewski's avatar Grégory Wisniewski

When a storage received a node information, it change its server address if it's

already known by UUID. This avoid duplicate entries in the node manager.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@791 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 64f2ed01
......@@ -93,9 +93,8 @@ class BaseStorageHandler(EventHandler):
app.nm.remove(n)
n = None
elif n.getServer() != addr:
# same uuid but different address, remove it
app.nm.remove(n)
n = None
# same uuid but different address, update it
n.setServer(addr)
if node_type == MASTER_NODE_TYPE:
if n is None:
......
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