From fb79b00ba266ae58f81836e54fe201b197036fdc Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Fri, 23 Jul 2004 06:22:15 +0300 Subject: [PATCH] Force mmap_no_write = yes if configure detected that. --HG-- branch : HEAD --- src/lib-storage/index/index-storage.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib-storage/index/index-storage.c b/src/lib-storage/index/index-storage.c index 507c219493..99275847ea 100644 --- a/src/lib-storage/index/index-storage.c +++ b/src/lib-storage/index/index-storage.c @@ -285,7 +285,9 @@ index_storage_mailbox_init(struct index_storage *storage, struct mailbox *box, index_flags |= MAIL_INDEX_OPEN_FLAG_FAST; if (getenv("MMAP_DISABLE") != NULL) index_flags |= MAIL_INDEX_OPEN_FLAG_MMAP_DISABLE; +#ifndef MMAP_CONFLICTS_WRITE if (getenv("MMAP_NO_WRITE") != NULL) +#endif index_flags |= MAIL_INDEX_OPEN_FLAG_MMAP_NO_WRITE; if (getenv("FCNTL_LOCKS_DISABLE") != NULL) index_flags |= MAIL_INDEX_OPEN_FLAG_FCNTL_LOCKS_DISABLE; -- 2.47.3