From a3da2ad4cd1c8c6adaa0f5055820541254f8c91d Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Fri, 9 Oct 2009 12:40:19 +0000 Subject: performance/quick-read: change the default option values in quick-read. Signed-off-by: Anand V. Avati BUG: 273 (Code review and optimize quick-read) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=273 --- xlators/performance/quick-read/src/quick-read.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, -- cgit