From 0c84ef8245f46ec3082faa796bed08387c37bc6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Wisniewski?= <gregory@nexedi.com> Date: Mon, 6 Jul 2009 10:17:03 +0000 Subject: [PATCH] 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 --- neo/storage/handlers/handler.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/neo/storage/handlers/handler.py b/neo/storage/handlers/handler.py index ac5c0af5..324d969e 100644 --- a/neo/storage/handlers/handler.py +++ b/neo/storage/handlers/handler.py @@ -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: -- 2.30.9