From 65689cffc97a4e7338d83e95624cd4996770d197 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 5 Jul 2004 01:09:13 +0300 Subject: [PATCH] disable cache file with mmap_no_write. it and mmap_disable will need some non-mmap buffer for reading. --HG-- branch : HEAD --- src/lib-index/mail-cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. */ -- 2.47.3