dovecot-2.2: lib-index: Recent cache file changes broke writing.
dovecot at dovecot.org
dovecot at dovecot.org
Sat Nov 3 18:43:11 EET 2012
details: http://hg.dovecot.org/dovecot-2.2/rev/899873ebc1cf
changeset: 15369:899873ebc1cf
user: Timo Sirainen <tss at iki.fi>
date: Sat Nov 03 18:43:00 2012 +0200
description:
lib-index: Recent cache file changes broke writing.
diffstat:
src/lib-index/mail-cache.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 1ad12af6efe4 -r 899873ebc1cf src/lib-index/mail-cache.c
--- a/src/lib-index/mail-cache.c Sat Nov 03 14:11:29 2012 +0200
+++ b/src/lib-index/mail-cache.c Sat Nov 03 18:43:00 2012 +0200
@@ -671,7 +671,7 @@
file_cache_invalidate(cache->file_cache, 0,
sizeof(struct mail_cache_header));
}
- if (mail_cache_map(cache, 0, 0, &data) == 0)
+ if (mail_cache_map(cache, 0, 0, &data) > 0)
cache->hdr_copy = *cache->hdr;
else {
(void)mail_cache_unlock(cache);
More information about the dovecot-cvs
mailing list