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>
This commit is contained in:
Meghana Madhusudhan 2015-06-12 19:25:26 +05:30 committed by Kaleb KEITHLEY
parent 5cdbbf34e3
commit 05a17a087e

View File

@ -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 "