changeset 381:a78def4088c1 HEAD

"fast open" with (eg. used with STATUS) worked exactly opposite way, caching was done when "fast" was TRUE.
author Timo Sirainen <tss@iki.fi>
date Mon, 07 Oct 2002 18:18:49 +0300
parents fb59a15622d0
children d1f925376da7
files src/lib-index/mail-index-open.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-index/mail-index-open.c	Mon Oct 07 16:37:52 2002 +0300
+++ b/src/lib-index/mail-index-open.c	Mon Oct 07 18:18:49 2002 +0300
@@ -200,7 +200,7 @@
 			return FALSE;
 	}
 
-	if (fast && (index->header->flags & MAIL_INDEX_FLAG_COMPRESS)) {
+	if (!fast && (index->header->flags & MAIL_INDEX_FLAG_COMPRESS)) {
 		/* remove deleted blocks from index file */
 		if (!mail_index_compress(index))
 			return FALSE;
@@ -216,13 +216,13 @@
 	if (!index->sync(index))
 		return FALSE;
 
-	if (fast && (index->header->flags & MAIL_INDEX_FLAG_CACHE_FIELDS)) {
+	if (!fast && (index->header->flags & MAIL_INDEX_FLAG_CACHE_FIELDS)) {
 		/* need to update cached fields */
 		if (!mail_index_update_cache(index))
 			return FALSE;
 	}
 
-	if (fast && (index->header->flags & MAIL_INDEX_FLAG_COMPRESS_DATA)) {
+	if (!fast && (index->header->flags & MAIL_INDEX_FLAG_COMPRESS_DATA)) {
 		/* remove unused space from index data file.
 		   keep after cache_fields which may move data
 		   and create unused space.. */