summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-handler.c
diff options
context:
space:
mode:
authorPranith Kumar K <pranithk@gluster.com>2010-09-21 02:02:48 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-09-21 03:24:06 -0700
commit0484b5768da303998549e8153d08899e58edab68 (patch)
tree7b4e34221e9a554da5066243f4a83a7a4a811753 /xlators/mgmt/glusterd/src/glusterd-handler.c
parentae376259304b654206c50b095dabf172fc355438 (diff)
cli, mgmt/glusterd: send errno in case of Peer reject
Signed-off-by: Pranith Kumar K <pranithk@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1653 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1653
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-handler.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-handler.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-handler.c b/xlators/mgmt/glusterd/src/glusterd-handler.c
index 112ca296bb2..bb297b0cc51 100644
--- a/xlators/mgmt/glusterd/src/glusterd-handler.c
+++ b/xlators/mgmt/glusterd/src/glusterd-handler.c
@@ -2869,7 +2869,7 @@ glusterd_xfer_friend_remove_resp (rpcsvc_request_t *req, char *hostname, int por
int
glusterd_xfer_friend_add_resp (rpcsvc_request_t *req, char *hostname, int port,
- int32_t op_ret)
+ int32_t op_ret, int32_t op_errno)
{
gd1_mgmt_friend_rsp rsp = {{0}, };
int32_t ret = -1;
@@ -2878,13 +2878,14 @@ glusterd_xfer_friend_add_resp (rpcsvc_request_t *req, char *hostname, int port,
GF_ASSERT (hostname);
- rsp.op_ret = op_ret;
this = THIS;
GF_ASSERT (this);
conf = this->private;
uuid_copy (rsp.uuid, conf->uuid);
+ rsp.op_ret = op_ret;
+ rsp.op_errno = op_errno;
rsp.hostname = gf_strdup (hostname);
rsp.port = port;