[dovecot-cvs] dovecot/src/lib-index mail-cache.c,1.37,1.38

cras at procontrol.fi cras at procontrol.fi
Mon Jul 5 01:09:15 EEST 2004


Update of /home/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv32057/src/lib-index

Modified Files:
	mail-cache.c 
Log Message:
disable cache file with mmap_no_write. it and mmap_disable will need some
non-mmap buffer for reading.



Index: mail-cache.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mail-cache.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- mail-cache.c	4 Jul 2004 20:00:47 -0000	1.37
+++ mail-cache.c	4 Jul 2004 22:09:13 -0000	1.38
@@ -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. */



More information about the dovecot-cvs mailing list