summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt
diff options
context:
space:
mode:
authorSaravanakumar Arumugam <sarumuga@redhat.com>2016-06-14 15:07:51 +0530
committerJeff Darcy <jdarcy@redhat.com>2016-06-14 11:43:04 -0700
commit04828f569eede11e11433bf099dbb7cb39c3f3b9 (patch)
tree275641571a7f2840d4af77f44d6801f3062e84db /xlators/mgmt
parentd079d6f6ec21955a600feb43e1154cabf18008ff (diff)
glusterd/geo-rep: remove unused variables
cleanup - remove unused variables, fix return value. Change-Id: I77b663bdae0ffe7667486f5f4e2355ef9757f960 BUG: 1346211 Signed-off-by: Saravanakumar Arumugam <sarumuga@redhat.com> Reviewed-on: http://review.gluster.org/14728 Smoke: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Jeff Darcy <jdarcy@redhat.com>
Diffstat (limited to 'xlators/mgmt')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-geo-rep.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-geo-rep.c b/xlators/mgmt/glusterd/src/glusterd-geo-rep.c
index ba047ede642..04f2f14af0c 100644
--- a/xlators/mgmt/glusterd/src/glusterd-geo-rep.c
+++ b/xlators/mgmt/glusterd/src/glusterd-geo-rep.c
@@ -1064,7 +1064,7 @@ glusterd_gsync_volinfo_dict_set (glusterd_volinfo_t *volinfo,
ret = 0;
out:
- return 0;
+ return ret;
}
static int
@@ -1794,7 +1794,6 @@ glusterd_op_verify_gsync_start_options (glusterd_volinfo_t *volinfo,
gf_boolean_t is_template_in_use = _gf_false;
char msg[2048] = {0};
uuid_t uuid = {0};
- glusterd_conf_t *priv = NULL;
xlator_t *this = NULL;
struct stat stbuf = {0,};
char statefiledir[PATH_MAX] = {0,};
@@ -1809,8 +1808,6 @@ glusterd_op_verify_gsync_start_options (glusterd_volinfo_t *volinfo,
GF_ASSERT (conf_path);
GF_ASSERT (this && this->private);
- priv = this->private;
-
if (GLUSTERD_STATUS_STARTED != volinfo->status) {
snprintf (msg, sizeof (msg), "Volume %s needs to be started "
"before "GEOREP" start", volinfo->volname);
@@ -2964,7 +2961,6 @@ glusterd_op_stage_gsync_create (dict_t *dict, char **op_errstr)
char *georep_session_wrkng_dir = NULL;
struct slave_vol_config slave1 = {{0},};
int type = 0;
- char monitor_status[NAME_MAX] = {0,};
char old_slave_url_info[SLAVE_URL_INFO_MAX] = {0};
char *old_slave_url = NULL;
char old_confpath[PATH_MAX] = {0};
@@ -6229,7 +6225,6 @@ glusterd_op_gsync_create (dict_t *dict, char **op_errstr, dict_t *rsp_dict)
char old_working_dir[PATH_MAX] = {0};
char new_working_dir[PATH_MAX] = {0};
char *slave_info = NULL;
- char slave_url_info[SLAVE_URL_INFO_MAX] = {0};
char *slave_voluuid = NULL;
char *old_slavehost = NULL;
gf_boolean_t is_existing_session = _gf_false;