From 001a44f7dc6cec6fb5ce555ce583af4428cc471d Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Thu, 18 Nov 2010 02:32:38 +0000 Subject: error out if the data-self-heal-window-size is less than 1 Signed-off-by: Raghavendra Bhat Signed-off-by: Anand V. Avati BUG: 2120 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2120 --- xlators/cluster/afr/src/afr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xlators/cluster/afr/src/afr.c b/xlators/cluster/afr/src/afr.c index cb458250597..f1b163f0b58 100644 --- a/xlators/cluster/afr/src/afr.c +++ b/xlators/cluster/afr/src/afr.c @@ -188,8 +188,8 @@ validate_options (xlator_t *this, dict_t *options, char **op_errstr) "validated data self-heal window size to %d", window_size); - if (window_size < 0) { - *op_errstr = gf_strdup ("Error, option should be >= 0"); + if (window_size < 1) { + *op_errstr = gf_strdup ("Error, option should be >= 1"); ret = -1; goto out; } -- cgit