From: Timo Sirainen Date: Sun, 4 Jul 2004 22:09:13 +0000 (+0300) Subject: disable cache file with mmap_no_write. it and mmap_disable will need some X-Git-Tag: 1.1.alpha1~3822 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65689cffc97a4e7338d83e95624cd4996770d197;p=thirdparty%2Fdovecot%2Fcore.git disable cache file with mmap_no_write. it and mmap_disable will need some non-mmap buffer for reading. --HG-- branch : HEAD --- diff --git a/src/lib-index/mail-cache.c b/src/lib-index/mail-cache.c index 0737fb7e5f..e4c487d897 100644 --- a/src/lib-index/mail-cache.c +++ b/src/lib-index/mail-cache.c @@ -263,7 +263,7 @@ struct mail_cache *mail_cache_open_or_create(struct mail_index *index) cache->fd = -1; cache->split_header_pool = pool_alloconly_create("Headers", 512); - if (!index->mmap_disable) { + if (!index->mmap_disable && !index->mmap_no_write) { if (mail_cache_open_and_verify(cache) < 0) { /* failed for some reason - doesn't really matter, it's disabled for now. */