mirror of
https://github.com/schoebel/mars
synced 2024-12-28 09:32:25 +00:00
main: allow fetch of initial uuid
This commit is contained in:
parent
bd22838db3
commit
77748d31ff
@ -2798,14 +2798,6 @@ int peer_action_dent_list(struct mars_peerinfo *peer,
|
||||
struct mars_global *old_global = NULL;
|
||||
int status;
|
||||
|
||||
if (unlikely(!my_uuid)) {
|
||||
MARS_ERR("cannot determine my own uuid for peer %s\n", peer->peer);
|
||||
make_peer_msg(peer, peer_pairs,
|
||||
"cannot determine my own uuid");
|
||||
status = -EPROTO;
|
||||
goto free;
|
||||
}
|
||||
|
||||
MARS_DBG("fetching remote dentries from '%s' '%s'\n",
|
||||
peer->peer, paths);
|
||||
|
||||
@ -2828,8 +2820,10 @@ int peer_action_dent_list(struct mars_peerinfo *peer,
|
||||
status = -EPROTO;
|
||||
goto free;
|
||||
}
|
||||
if (unlikely(strcmp(peer_uuid->new_link, my_uuid) &&
|
||||
strcmp(my_uuid, "(any)"))) {
|
||||
if (unlikely(my_uuid && *my_uuid &&
|
||||
strcmp(peer_uuid->new_link, my_uuid) &&
|
||||
strcmp(my_uuid, "(any)") &&
|
||||
strcmp(peer_uuid->new_link, "(any)"))) {
|
||||
MARS_ERR("UUID mismatch '%s' != '%s' for peer '%s'\n",
|
||||
peer_uuid->new_link, my_uuid,
|
||||
peer->peer);
|
||||
|
Loading…
Reference in New Issue
Block a user