changeset 2284:1a31b3d17b1e HEAD

disable cache file with mmap_no_write. it and mmap_disable will need some non-mmap buffer for reading.
author Timo Sirainen <tss@iki.fi>
date Mon, 05 Jul 2004 01:09:13 +0300
parents 199eb3df762c
children afb81e31b989
files src/lib-index/mail-cache.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-index/mail-cache.c	Mon Jul 05 01:03:21 2004 +0300
+++ b/src/lib-index/mail-cache.c	Mon Jul 05 01:09:13 2004 +0300
@@ -263,7 +263,7 @@
 	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. */