diff --git a/kernel/sy_old/mars_main.c b/kernel/sy_old/mars_main.c index 5d58e672..668594dd 100644 --- a/kernel/sy_old/mars_main.c +++ b/kernel/sy_old/mars_main.c @@ -2447,7 +2447,6 @@ int peer_action_dent_list(struct mars_global *tmp_global, LIST_HEAD(old_list); struct mars_dent *peer_uuid; const char *my_uuid; - int cmp; MARS_DBG("got remote denties from %s\n", peer->peer); @@ -2466,8 +2465,8 @@ int peer_action_dent_list(struct mars_global *tmp_global, status = -EPROTO; goto free; } - cmp = strcmp(peer_uuid->new_link, my_uuid); - if (unlikely(cmp)) { + if (unlikely(strcmp(peer_uuid->new_link, my_uuid) && + strcmp(my_uuid, "(any)"))) { MARS_ERR("UUID mismatch for peer %s, you are trying to communicate with a foreign cluster!\n", peer->peer); make_msg(peer_pairs, "UUID mismatch with '%s', own cluster '%s' is trying to communicate with a foreign cluster '%s'", peer->peer,