summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-volume-set.c
diff options
context:
space:
mode:
authorJoseph Fernandes <josferna@redhat.com>2015-12-15 14:39:25 +0530
committerDan Lambright <dlambrig@redhat.com>2015-12-17 13:13:58 -0800
commit459314829691e3cb0c31f4971111d7dadfb199d8 (patch)
tree23f5630118215085d7f970d370c50116725e46c1 /xlators/mgmt/glusterd/src/glusterd-volume-set.c
parente9bb9f018f14f7d32c2ff4cc33df3a114a6f376b (diff)
tier/glusterd: Only positive values for freq-thresholds
Fixed error handling for validation for freq-thresholds Backport of http://review.gluster.org/12970 > Change-Id: Ibe3a9752ac0b525b0c8c0d6c4b4e4d694bd91b88 > BUG: 1291603 > Signed-off-by: Joseph Fernandes <josferna@redhat.com> > Reviewed-on: http://review.gluster.org/12970 > Reviewed-by: Dan Lambright <dlambrig@redhat.com> > Tested-by: Gluster Build System <jenkins@build.gluster.com> > Tested-by: Dan Lambright <dlambrig@redhat.com> Signed-off-by: Joseph Fernandes <josferna@redhat.com> Change-Id: I044284b5134a685e505a377028bc9a11563b2665 BUG: 1292359 Reviewed-on: http://review.gluster.org/12992 Tested-by: Gluster Build System <jenkins@build.gluster.com> Tested-by: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Dan Lambright <dlambrig@redhat.com> Tested-by: Dan Lambright <dlambrig@redhat.com>
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;
}