changeset 1368:33cf08305781 HEAD

Don't set any default cache_fields when building index into memory.
author Timo Sirainen <tss@iki.fi>
date Wed, 16 Apr 2003 23:26:11 +0300
parents 533bb936e674
children 945f857cb514
files src/lib-index/mail-index-open.c
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-index/mail-index-open.c	Wed Apr 16 19:05:45 2003 +0300
+++ b/src/lib-index/mail-index-open.c	Wed Apr 16 23:26:11 2003 +0300
@@ -241,8 +241,11 @@
 	   when it succeeds */
 	hdr->flags = MAIL_INDEX_FLAG_REBUILD;
 
-	/* set the fields we always want to cache */
-	hdr->cache_fields |= index->default_cache_fields;
+	if (!index->anon_mmap) {
+		/* set the fields we always want to cache,
+		   but not if we're building into memory */
+		hdr->cache_fields |= index->default_cache_fields;
+	}
 
 	hdr->used_file_size = sizeof(struct mail_index_header);
 	hdr->uid_validity = ioloop_time;