From: Timo Sirainen Date: Tue, 18 Jun 2013 09:56:27 +0000 (+0300) Subject: lib-index: If error is found from transaction log, update dovecot.index so it won... X-Git-Tag: 2.2.4~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8c6cb4ded4776b8968224bde670d21ff467ae16a;p=thirdparty%2Fdovecot%2Fcore.git lib-index: If error is found from transaction log, update dovecot.index so it won't be read again. --- diff --git a/src/lib-index/mail-index-sync.c b/src/lib-index/mail-index-sync.c index 65ef81739c..bc17e77bfb 100644 --- a/src/lib-index/mail-index-sync.c +++ b/src/lib-index/mail-index-sync.c @@ -895,6 +895,9 @@ void mail_index_sync_set_corrupted(struct mail_index_sync_map_ctx *ctx, 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);