dovecot-2.2: lib-index: Recent cache file changes broke writing.

dovecot at dovecot.org dovecot at dovecot.org
Sat Jan 5 01:14:33 EET 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/2de37734d0b9
changeset: 15504: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