summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt
diff options
context:
space:
mode:
authorYaniv Kaul <ykaul@redhat.com>2018-08-16 14:20:32 +0300
committerAmar Tumballi <amarts@redhat.com>2018-08-23 10:17:51 +0000
commitda22e8b1ce657280babbe077b53313058822085c (patch)
tree9bd2cc46f403d87b2dc3958178ca94d7590bd8eb /xlators/mgmt
parentbc97ae8d9065d9fa7bbcad43e7eef5cc01761bc1 (diff)
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 <ykaul@redhat.com>
Diffstat (limited to 'xlators/mgmt')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-volume-ops.c6
1 files changed, 3 insertions, 3 deletions
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;