summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-volume-set.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-volume-set.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-volume-set.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-volume-set.c b/xlators/mgmt/glusterd/src/glusterd-volume-set.c
index d6f20ab9822..403b97f9fde 100644
--- a/xlators/mgmt/glusterd/src/glusterd-volume-set.c
+++ b/xlators/mgmt/glusterd/src/glusterd-volume-set.c
@@ -181,6 +181,7 @@ validate_tier_thresholds (glusterd_volinfo_t *volinfo,
if (ret) {
snprintf (errstr, sizeof (errstr), "%s is not a compatible "
"value. %s expects an integer value.", value, key);
+ ret = -1;
goto out;
}
@@ -188,6 +189,7 @@ validate_tier_thresholds (glusterd_volinfo_t *volinfo,
snprintf (errstr, sizeof (errstr), "%s is not a "
"compatible value. %s expects a positive"
"integer value.", value, key);
+ ret = -1;
goto out;
}