summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2009-10-09 12:40:19 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-10-09 22:48:14 -0700
commita3da2ad4cd1c8c6adaa0f5055820541254f8c91d (patch)
tree6ff32833373911a599c22959dbfaf1418b3825a5
parent077d73fa467bcd0a5ac4be26bb4b366d5fc20a69 (diff)
performance/quick-read: change the default option values in quick-read.
Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 273 (Code review and optimize quick-read) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=273
-rw-r--r--xlators/performance/quick-read/src/quick-read.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/performance/quick-read/src/quick-read.c b/xlators/performance/quick-read/src/quick-read.c
index 2f259cf3da4..c91fa89a0a7 100644
--- a/xlators/performance/quick-read/src/quick-read.c
+++ b/xlators/performance/quick-read/src/quick-read.c
@@ -2159,6 +2159,7 @@ init (xlator_t *this)
goto out;
}
+ conf->max_file_size = 65536;
ret = dict_get_str (this->options, "max-file-size",
&str);
if (ret == 0) {
@@ -2173,7 +2174,7 @@ init (xlator_t *this)
}
}
- conf->cache_timeout = -1;
+ conf->cache_timeout = 1;
ret = dict_get_str (this->options, "cache-timeout", &str);
if (ret == 0) {
ret = gf_string2uint_base10 (str,