From 0484b5768da303998549e8153d08899e58edab68 Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Tue, 21 Sep 2010 02:02:48 +0000 Subject: cli, mgmt/glusterd: send errno in case of Peer reject Signed-off-by: Pranith Kumar K Signed-off-by: Vijay Bellur BUG: 1653 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1653 --- xlators/mgmt/glusterd/src/glusterd-handler.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'xlators/mgmt/glusterd/src/glusterd-handler.c') 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; -- cgit