mirror of
https://github.com/schoebel/mars
synced 2024-12-24 23:52: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);
|
LIST_HEAD(old_list);
|
||||||
struct mars_dent *peer_uuid;
|
struct mars_dent *peer_uuid;
|
||||||
const char *my_uuid;
|
const char *my_uuid;
|
||||||
int cmp;
|
|
||||||
|
|
||||||
MARS_DBG("got remote denties from %s\n", peer->peer);
|
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;
|
status = -EPROTO;
|
||||||
goto free;
|
goto free;
|
||||||
}
|
}
|
||||||
cmp = strcmp(peer_uuid->new_link, my_uuid);
|
if (unlikely(strcmp(peer_uuid->new_link, my_uuid) &&
|
||||||
if (unlikely(cmp)) {
|
strcmp(my_uuid, "(any)"))) {
|
||||||
MARS_ERR("UUID mismatch for peer %s, you are trying to communicate with a foreign cluster!\n", peer->peer);
|
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'",
|
make_msg(peer_pairs, "UUID mismatch with '%s', own cluster '%s' is trying to communicate with a foreign cluster '%s'",
|
||||||
peer->peer,
|
peer->peer,
|
||||||
|
Loading…
Reference in New Issue
Block a user