[dovecot-cvs] dovecot/src/lib-index mail-index-open.c,1.28,1.29

cras at procontrol.fi cras at procontrol.fi
Thu Apr 17 00:26:14 EEST 2003


Update of /home/cvs/dovecot/src/lib-index
In directory danu:/tmp/cvs-serv4962/lib-index

Modified Files:
	mail-index-open.c 
Log Message:
Don't set any default cache_fields when building index into memory.



Index: mail-index-open.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mail-index-open.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- mail-index-open.c	16 Apr 2003 15:13:24 -0000	1.28
+++ mail-index-open.c	16 Apr 2003 20:26:11 -0000	1.29
@@ -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;




More information about the dovecot-cvs mailing list