dovecot-2.2: lib-index: If error is found from transaction log, ...

dovecot at dovecot.org dovecot at dovecot.org
Tue Jun 18 12:59:31 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/3794e6cb0da8
changeset: 16531:3794e6cb0da8
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Jun 18 12:56:27 2013 +0300
description:
lib-index: If error is found from transaction log, update dovecot.index so it won't be read again.

diffstat:

 src/lib-index/mail-index-sync.c |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (13 lines):

diff -r 3dc92ec58aef -r 3794e6cb0da8 src/lib-index/mail-index-sync.c
--- a/src/lib-index/mail-index-sync.c	Tue Jun 18 12:15:50 2013 +0300
+++ b/src/lib-index/mail-index-sync.c	Tue Jun 18 12:56:27 2013 +0300
@@ -895,6 +895,9 @@
 	uoff_t offset;
 
 	ctx->errors = TRUE;
+	/* make sure we don't get to this same error again by updating the
+	   dovecot.index */
+	ctx->view->index->need_recreate = TRUE;
 
 	mail_transaction_log_view_get_prev_pos(ctx->view->log_view,
 					       &seq, &offset);


More information about the dovecot-cvs mailing list