[dovecot-cvs] dovecot/src/lib-index mail-cache-decisions.c,1.7,1.8

cras at dovecot.org cras at dovecot.org
Sun Nov 7 22:35:28 EET 2004


Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv16096

Modified Files:
	mail-cache-decisions.c 
Log Message:
mark decision changes dirty so when we're trying to write them to disk, we
don't actually just forget them..



Index: mail-cache-decisions.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-cache-decisions.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- mail-cache-decisions.c	20 Jul 2004 17:52:38 -0000	1.7
+++ mail-cache-decisions.c	7 Nov 2004 20:35:26 -0000	1.8
@@ -107,6 +107,7 @@
 		      generating the local cache for the first time, we'll
 		      drop back to TEMP within few months. */
 		cache->fields[field].field.decision = MAIL_CACHE_DECISION_YES;
+		cache->fields[field].decision_dirty = TRUE;
 		cache->field_header_write_pending = TRUE;
 	} else {
 		cache->fields[field].uid_highwater = uid;
@@ -132,6 +133,7 @@
 
 	/* field used the first time */
 	cache->fields[field].field.decision = MAIL_CACHE_DECISION_TEMP;
+	cache->fields[field].decision_dirty = TRUE;
 	cache->field_header_write_pending = TRUE;
 
 	if (mail_index_lookup_uid(view->view, seq, &uid) == 0)



More information about the dovecot-cvs mailing list