From da22e8b1ce657280babbe077b53313058822085c Mon Sep 17 00:00:00 2001 From: Yaniv Kaul Date: Thu, 16 Aug 2018 14:20:32 +0300 Subject: xlators/mgmt/glusterd/src/glusterd-volume-ops.c : reduce size of message variable Size of error message variable reduced from 2048 bytes to 64 bytes or 128 bytes. Compile-tested only! Change-Id: I393ba03969a6e71ccb0ce382d0e0546192897312 updates: bz#1193929 Signed-off-by: Yaniv Kaul --- xlators/mgmt/glusterd/src/glusterd-volume-ops.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xlators') diff --git a/xlators/mgmt/glusterd/src/glusterd-volume-ops.c b/xlators/mgmt/glusterd/src/glusterd-volume-ops.c index 70a871fcef1..a02b0cb7571 100644 --- a/xlators/mgmt/glusterd/src/glusterd-volume-ops.c +++ b/xlators/mgmt/glusterd/src/glusterd-volume-ops.c @@ -587,7 +587,7 @@ __glusterd_handle_cli_stop_volume (rpcsvc_request_t *req) dict_t *dict = NULL; glusterd_op_t cli_op = GD_OP_STOP_VOLUME; xlator_t *this = NULL; - char err_str[2048] = {0,}; + char err_str[64] = {0,}; glusterd_conf_t *conf = NULL; this = THIS; @@ -678,7 +678,7 @@ __glusterd_handle_cli_delete_volume (rpcsvc_request_t *req) glusterd_op_t cli_op = GD_OP_DELETE_VOLUME; dict_t *dict = NULL; char *volname = NULL; - char err_str[2048]= {0,}; + char err_str[64]= {0,}; xlator_t *this = NULL; this = THIS; @@ -1000,7 +1000,7 @@ __glusterd_handle_cli_statedump_volume (rpcsvc_request_t *req) dict_t *dict = NULL; int32_t option_cnt = 0; glusterd_op_t cli_op = GD_OP_STATEDUMP_VOLUME; - char err_str[2048] = {0,}; + char err_str[128] = {0,}; xlator_t *this = NULL; glusterd_conf_t *priv = NULL; -- cgit