diff options
author | Raghavendra Bhat <raghavendrabhat@gluster.com> | 2010-11-18 02:32:38 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-11-18 05:56:01 -0800 |
commit | 001a44f7dc6cec6fb5ce555ce583af4428cc471d (patch) | |
tree | d67145112879c87d1d6b5f0108772d2670781387 /xlators/cluster/afr | |
parent | 99134d33f85e38e5c37227ecb8fdfbe03bd521d0 (diff) |
error out if the data-self-heal-window-size is less than 1
Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 2120 ()
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2120
Diffstat (limited to 'xlators/cluster/afr')
-rw-r--r-- | xlators/cluster/afr/src/afr.c | 4 |
1 files 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; } |