performance/quick-read: set default cache-size value to 128MB.

Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 723 (enhancements to quick read)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=723
This commit is contained in:
Raghavendra G 2010-06-01 05:07:58 +00:00 committed by Anand V. Avati
parent f6ac7f6f6e
commit f6048901a2

View File

@ -20,6 +20,8 @@
#include "quick-read.h"
#include "statedump.h"
#define QR_DEFAULT_CACHE_SIZE 134217728
void
qr_local_free (qr_local_t *local)
{
@ -2546,7 +2548,7 @@ init (xlator_t *this)
}
}
conf->cache_size = 65536;
conf->cache_size = QR_DEFAULT_CACHE_SIZE;
ret = dict_get_str (this->options, "cache-size", &str);
if (ret == 0) {
ret = gf_string2bytesize (str, &conf->cache_size);