summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-ganesha.c
diff options
context:
space:
mode:
authorMeghana Madhusudhan <mmadhusu@redhat.com>2015-06-12 19:25:26 +0530
committerKaleb KEITHLEY <kkeithle@redhat.com>2015-06-15 15:04:06 -0700
commit05a17a087ec8d50d1b5341ab1a7fbf18cdabcb92 (patch)
treee266622892282ae04d55e579bbfe6e9e1122bd4a /xlators/mgmt/glusterd/src/glusterd-ganesha.c
parent5cdbbf34e31758071f597561aa8572cedd56aece (diff)
NFS-Ganesha : Return corect return value
When any of the nodes in the trusted pool is not listed in the cluster node list, it receives a wrong return value. And commit fails on that host. Fixing the same. Change-Id: Ib208dae7497800cc48b7f7a77f5e708f6c11e676 BUG: 1231257 Signed-off-by: Meghana Madhusudhan <mmadhusu@redhat.com> Reviewed-on: http://review.gluster.org/11205 Reviewed-by: soumya k <skoduri@redhat.com> Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com> Reviewed-by: Niels de Vos <ndevos@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-ganesha.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-ganesha.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-ganesha.c b/xlators/mgmt/glusterd/src/glusterd-ganesha.c
index 7c04948ebab..10f7c769b8c 100644
--- a/xlators/mgmt/glusterd/src/glusterd-ganesha.c
+++ b/xlators/mgmt/glusterd/src/glusterd-ganesha.c
@@ -666,7 +666,9 @@ pre_setup (char **op_errstr)
goto out;
}
- if (check_host_list()) {
+ ret = check_host_list();
+
+ if (ret) {
ret = setup_cluster();
if (ret == -1)
gf_asprintf (op_errstr, "Failed to set up HA "