mirror of
https://github.com/schoebel/mars
synced 2024-12-24 07:32:46 +00:00
main: allow exceptional fresh uuid communication
This commit is contained in:
parent
ff79d8b30d
commit
987154052f
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user