diff options
author | Amar Tumballi <amar@gluster.com> | 2011-06-02 02:59:07 +0000 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-06-08 09:57:35 -0700 |
commit | 2c421f21040e1f9273cb9850c95756d3a4ca91af (patch) | |
tree | a8848b4e74a96d40f9addc0e5a2a49324af9fe82 | |
parent | 7959e867632baad702d1d5c8dc4fc4854d17e3e1 (diff) |
performance/io-cache: fix the check of min and max file size.
Signed-off-by: Amar Tumballi <amar@gluster.com>
Signed-off-by: Anand Avati <avati@gluster.com>
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
-rw-r--r-- | xlators/performance/io-cache/src/io-cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
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"). " |