From 2c421f21040e1f9273cb9850c95756d3a4ca91af Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Thu, 2 Jun 2011 02:59:07 +0000 Subject: performance/io-cache: fix the check of min and max file size. Signed-off-by: Amar Tumballi Signed-off-by: Anand Avati BUG: 2974 (volume set for 'cache-min-file-size' succeeds even if 'min-file size' is greater than 'max-file-size') URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2974 --- xlators/performance/io-cache/src/io-cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/performance/io-cache') diff --git a/xlators/performance/io-cache/src/io-cache.c b/xlators/performance/io-cache/src/io-cache.c index 5a8e8338d..8cc3cacc5 100644 --- a/xlators/performance/io-cache/src/io-cache.c +++ b/xlators/performance/io-cache/src/io-cache.c @@ -1671,7 +1671,7 @@ reconfigure (xlator_t *this, dict_t *options) } } - if ((max_file_size >= 0) & (min_file_size > max_file_size)) { + if ((max_file_size >= 0) && (min_file_size > max_file_size)) { gf_log ("io-cache", GF_LOG_ERROR, "minimum size (%" PRIu64") of a file that can be cached is " "greater than maximum size (%"PRIu64"). " -- cgit