summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-handler.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-handler.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-handler.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-handler.c b/xlators/mgmt/glusterd/src/glusterd-handler.c
index 102cc01..715f3c8 100644
--- a/xlators/mgmt/glusterd/src/glusterd-handler.c
+++ b/xlators/mgmt/glusterd/src/glusterd-handler.c
@@ -2383,7 +2383,7 @@ glusterd_handle_probe_query (rpcsvc_request_t *req)
GF_ASSERT (0);
goto out;
}
- ret = glusterd_friend_find (NULL, remote_hostname, &peerinfo);
+ ret = glusterd_friend_find (probe_req.uuid, remote_hostname, &peerinfo);
if ((ret == 0 ) || list_empty (&conf->peers)) {
ret = glusterd_peer_hostname_new (probe_req.hostname, &name);
@@ -2392,12 +2392,14 @@ glusterd_handle_probe_query (rpcsvc_request_t *req)
} else {
list_add_tail (&name->hostname_list, &conf->hostnames);
}
- uuid_copy (rsp.uuid, conf->uuid);
+
} else {
rsp.op_ret = -1;
rsp.op_errno = GF_PROBE_ANOTHER_CLUSTER;
}
+ uuid_copy (rsp.uuid, conf->uuid);
+
rsp.hostname = probe_req.hostname;
ret = glusterd_submit_reply (req, &rsp, NULL, 0, NULL,