>From 61f942f490aef47c1ac9722e302f6af7f87cdbd5 Mon Sep 17 00:00:00 2001 From: Krishnan Parthasarathi Date: Wed, 27 Feb 2013 16:44:07 +0530 Subject: [PATCH] glusterd: Setting errstr to to appease xdr_string An empty string is sufficient, since the cli decodes the errstr from op_errno sent in response. We use the op_errstr only when the error cannot be categorised into one of the existing values. Change-Id: Ic66803c125aa488687ee3d2dee6eb7071e406329 Signed-off-by: Krishnan Parthasarathi --- xlators/mgmt/glusterd/src/glusterd-handler.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xlators/mgmt/glusterd/src/glusterd-handler.c b/xlators/mgmt/glusterd/src/glusterd-handler.c index 04e5833..328971c 100644 --- a/xlators/mgmt/glusterd/src/glusterd-handler.c +++ b/xlators/mgmt/glusterd/src/glusterd-handler.c @@ -2058,6 +2058,7 @@ respond: uuid_copy (rsp.uuid, MY_UUID); rsp.hostname = probe_req.hostname; + rsp.op_errstr = ""; glusterd_submit_reply (req, &rsp, NULL, 0, NULL, (xdrproc_t)xdr_gd1_mgmt_probe_rsp); -- 1.7.11.7