summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
Diffstat (limited to 'xlators')
-rw-r--r--xlators/cluster/afr/src/afr.c4
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;
}