diff options
author | Raghavendra G <raghavendra@gluster.com> | 2009-10-09 12:40:19 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-10-09 22:48:14 -0700 |
commit | a3da2ad4cd1c8c6adaa0f5055820541254f8c91d (patch) | |
tree | 6ff32833373911a599c22959dbfaf1418b3825a5 /xlators/performance | |
parent | 077d73fa467bcd0a5ac4be26bb4b366d5fc20a69 (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
Diffstat (limited to 'xlators/performance')
-rw-r--r-- | xlators/performance/quick-read/src/quick-read.c | 3 |
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 2f259cf3d..c91fa89a0 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, |