summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2011-06-02 03:01:20 +0000
committerAnand Avati <avati@gluster.com>2011-06-08 09:58:21 -0700
commitba1bc2e5823da75f9bbe4742545a427aeb0fd8f3 (patch)
treecd66f77f3f9e8dd8d821ff5226d27e277b12e32c
parent476d5ab635e1069246c21d65773e9f9c91852217 (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.c2
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 a3ebaf47c..da6c556b9 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)
table->max_file_size);
}
- 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"). "