dovecot-2.0: lib-storage: MAILBOX_SYNC_FLAG_PRECACHE did nothing...

dovecot at dovecot.org dovecot at dovecot.org
Wed Jun 22 20:16:26 EEST 2011


details:   http://hg.dovecot.org/dovecot-2.0/rev/fcc4ff5b83c4
changeset: 12852:fcc4ff5b83c4
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Jun 22 20:16:16 2011 +0300
description:
lib-storage: MAILBOX_SYNC_FLAG_PRECACHE did nothing when mail_debug=yes

diffstat:

 src/lib-storage/index/index-sync.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (18 lines):

diff -r 327486d79620 -r fcc4ff5b83c4 src/lib-storage/index/index-sync.c
--- a/src/lib-storage/index/index-sync.c	Thu Jun 16 16:37:42 2011 +0300
+++ b/src/lib-storage/index/index-sync.c	Wed Jun 22 20:16:16 2011 +0300
@@ -383,9 +383,11 @@
 	uoff_t size;
 	const char *str;
 
-	if (box->storage->set->mail_debug) {
-		i_debug("%s: Nothing in mailbox cache, skipping",
-			mailbox_get_vname(box));
+	if (cache == 0) {
+		if (box->storage->set->mail_debug) {
+			i_debug("%s: Nothing in mailbox cache, skipping",
+				mailbox_get_vname(box));
+		}
 		return 0;
 	}
 


More information about the dovecot-cvs mailing list