Mercurial > dovecot > core-2.2
changeset 22771:648583df4d47
lib-index: Fix removal of forced cache decisions from existing cache files
The forced-flags are written to the cache file when the file is created.
They were also read back, and the force-flag was preserved even when the
configuration was removed.
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Tue, 23 Jan 2018 00:04:28 +0200 |
parents | e07da7d8ef13 |
children | e7177725a580 |
files | src/lib-index/mail-cache-fields.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-index/mail-cache-fields.c Mon Jan 22 17:38:32 2018 +0200 +++ b/src/lib-index/mail-cache-fields.c Tue Jan 23 00:04:28 2018 +0200 @@ -411,7 +411,7 @@ field.name = names; field.type = types[i]; field.field_size = sizes[i]; - field.decision = decisions[i]; + field.decision = decisions[i] & ~MAIL_CACHE_DECISION_FORCED; mail_cache_register_fields(cache, &field, 1); fidx = field.idx; }