From 358b284535dc7e98d9817c8f63d7659098f5e427 Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Fri, 9 Oct 2009 12:43:36 +0000 Subject: performance/quick-read: change the default option values in quick-read. Signed-off-by: Anand V. Avati BUG: 238 (Backport quick-read to 2.0 release) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=238 --- xlators/performance/quick-read/src/quick-read.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xlators') diff --git a/xlators/performance/quick-read/src/quick-read.c b/xlators/performance/quick-read/src/quick-read.c index f1ca95c73..198cd2d98 100644 --- a/xlators/performance/quick-read/src/quick-read.c +++ b/xlators/performance/quick-read/src/quick-read.c @@ -2242,6 +2242,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) { @@ -2256,7 +2257,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