diff options
author | Kaleb S. KEITHLEY <kkeithle@redhat.com> | 2016-08-22 13:22:03 -0400 |
---|---|---|
committer | Kaleb KEITHLEY <kkeithle@redhat.com> | 2016-08-29 09:32:20 -0700 |
commit | 2740279cc66e03572aa3f1f47d18d1d708704d71 (patch) | |
tree | 31938e522e321941533a19e1c32f8d83e8aae18d | |
parent | fb6c3540c14690d4e62e0f32cc08a0d744c4b843 (diff) |
glusterd (replace-brick): fix unused variable warnings/errors
http://review.gluster.org/14085 fixes a/the "leak" - via the
generated rpc/xdr headers - of pragmas that mask these warnings.
However 14085 won't pass the smoke test until all the warnings are
fixed.
Change-Id: I58aede09a2f2c65a438188d7319ad7a61395e7a9
BUG: 1369124
Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com>
Reviewed-on: http://review.gluster.org/15274
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
Smoke: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: Prashanth Pai <ppai@redhat.com>
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-replace-brick.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-replace-brick.c b/xlators/mgmt/glusterd/src/glusterd-replace-brick.c index 2b2120738ca..0df5d437ca5 100644 --- a/xlators/mgmt/glusterd/src/glusterd-replace-brick.c +++ b/xlators/mgmt/glusterd/src/glusterd-replace-brick.c @@ -47,7 +47,6 @@ __glusterd_handle_replace_brick (rpcsvc_request_t *req) char *src_brick = NULL; char *dst_brick = NULL; int32_t op = 0; - glusterd_op_t cli_op = GD_OP_REPLACE_BRICK; char *volname = NULL; char msg[2048] = {0,}; xlator_t *this = NULL; @@ -168,7 +167,6 @@ glusterd_op_stage_replace_brick (dict_t *dict, char **op_errstr, dict_t *rsp_dict) { int ret = 0; - int32_t port = 0; char *src_brick = NULL; char *dst_brick = NULL; char *volname = NULL; @@ -181,11 +179,8 @@ glusterd_op_stage_replace_brick (dict_t *dict, char **op_errstr, char *dup_dstbrick = NULL; glusterd_peerinfo_t *peerinfo = NULL; glusterd_brickinfo_t *dst_brickinfo = NULL; - gf_boolean_t enabled = _gf_false; glusterd_conf_t *priv = NULL; - char *savetok = NULL; char pidfile[PATH_MAX] = {0}; - char *task_id_str = NULL; xlator_t *this = NULL; gf_boolean_t is_force = _gf_false; gsync_status_param_t param = {0,}; @@ -623,7 +618,6 @@ int glusterd_op_replace_brick (dict_t *dict, dict_t *rsp_dict) { int ret = 0; - dict_t *ctx = NULL; char *replace_op = NULL; glusterd_volinfo_t *volinfo = NULL; char *volname = NULL; @@ -633,7 +627,6 @@ glusterd_op_replace_brick (dict_t *dict, dict_t *rsp_dict) char *dst_brick = NULL; glusterd_brickinfo_t *src_brickinfo = NULL; glusterd_brickinfo_t *dst_brickinfo = NULL; - char *task_id_str = NULL; this = THIS; GF_ASSERT (this); @@ -779,14 +772,12 @@ glusterd_mgmt_v3_initiate_replace_brick_cmd_phases (rpcsvc_request_t *req, int32_t op_ret = -1; uint32_t txn_generation = 0; uint32_t op_errno = 0; - char *cli_errstr = NULL; char *op_errstr = NULL; dict_t *req_dict = NULL; dict_t *tmp_dict = NULL; uuid_t *originator_uuid = NULL; xlator_t *this = NULL; glusterd_conf_t *conf = NULL; - gf_boolean_t success = _gf_false; gf_boolean_t is_acquired = _gf_false; this = THIS; |