]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
disable cache file with mmap_no_write. it and mmap_disable will need some
authorTimo Sirainen <tss@iki.fi>
Sun, 4 Jul 2004 22:09:13 +0000 (01:09 +0300)
committerTimo Sirainen <tss@iki.fi>
Sun, 4 Jul 2004 22:09:13 +0000 (01:09 +0300)
non-mmap buffer for reading.

--HG--
branch : HEAD

src/lib-index/mail-cache.c

index 0737fb7e5f9ba816ca9d7a7934d923ff3e5ecef6..e4c487d8971b92501df14e8db79481d7b1764f8b 100644 (file)
@@ -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. */