dovecot: Update last_used also for decision=yes cache fields, ot...
dovecot at dovecot.org
dovecot at dovecot.org
Sat Dec 29 21:24:34 EET 2007
details: http://hg.dovecot.org/dovecot/rev/46d531d521b9
changeset: 7069:46d531d521b9
user: Timo Sirainen <tss at iki.fi>
date: Sat Dec 29 21:24:30 2007 +0200
description:
Update last_used also for decision=yes cache fields, otherwise they get
dropped when compressing.
diffstat:
1 file changed, 8 insertions(+), 8 deletions(-)
src/lib-index/mail-cache-decisions.c | 16 ++++++++--------
diffs (33 lines):
diff -r 180e219aab9a -r 46d531d521b9 src/lib-index/mail-cache-decisions.c
--- a/src/lib-index/mail-cache-decisions.c Sat Dec 29 21:23:50 2007 +0200
+++ b/src/lib-index/mail-cache-decisions.c Sat Dec 29 21:24:30 2007 +0200
@@ -79,14 +79,6 @@ void mail_cache_decision_state_update(st
i_assert(field < cache->fields_count);
- if (cache->fields[field].field.decision != MAIL_CACHE_DECISION_TEMP) {
- /* a) forced decision
- b) not cached, mail_cache_decision_add() will handle this
- c) permanently cached already, okay. */
- return;
- }
-
- /* see if we want to change decision from TEMP to YES */
mail_index_lookup_uid(view->view, seq, &uid);
hdr = mail_index_get_header(view->view);
@@ -96,6 +88,14 @@ void mail_cache_decision_state_update(st
cache->field_header_write_pending = TRUE;
}
+ if (cache->fields[field].field.decision != MAIL_CACHE_DECISION_TEMP) {
+ /* a) forced decision
+ b) not cached, mail_cache_decision_add() will handle this
+ c) permanently cached already, okay. */
+ return;
+ }
+
+ /* see if we want to change decision from TEMP to YES */
if (uid < cache->fields[field].uid_highwater ||
uid < hdr->day_first_uid[7]) {
/* a) nonordered access within this session. if client doesn't
More information about the dovecot-cvs
mailing list