dovecot-2.1: lib-index: Recent cache file changes broke writing.
dovecot at dovecot.org
dovecot at dovecot.org
Sat Nov 3 18:46:32 EET 2012
details: http://hg.dovecot.org/dovecot-2.1/rev/2de37734d0b9
changeset: 14794:2de37734d0b9
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 7d931927e4ac -r 2de37734d0b9 src/lib-index/mail-cache.c
--- a/src/lib-index/mail-cache.c Wed Oct 31 13:24:49 2012 +0200
+++ b/src/lib-index/mail-cache.c Sat Nov 03 18:43:00 2012 +0200
@@ -684,7 +684,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