Mercurial > dovecot > original-hg > dovecot-1.2
changeset 8530:60ea101c7534 HEAD
Crashfix to handling missing transaction logs.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 13 Dec 2008 12:38:43 +0200 |
parents | e7b0a099c33d |
children | f63f26da3845 |
files | src/lib-index/mail-index-view-sync.c |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-index/mail-index-view-sync.c Sat Dec 13 11:21:21 2008 +0200 +++ b/src/lib-index/mail-index-view-sync.c Sat Dec 13 12:38:43 2008 +0200 @@ -563,7 +563,12 @@ ctx->log_was_lost = TRUE; if (!sync_expunges) i_array_init(&ctx->expunges, 64); - if (view_sync_get_log_lost_changes(ctx, &expunge_count) < 0) { + mail_index_sync_map_init(&ctx->sync_map_ctx, view, + MAIL_INDEX_SYNC_HANDLER_VIEW); + ret = view_sync_get_log_lost_changes(ctx, &expunge_count); + mail_index_modseq_sync_end(&ctx->sync_map_ctx.modseq_ctx); + mail_index_sync_map_deinit(&ctx->sync_map_ctx); + if (ret < 0) { mail_index_set_error(view->index, "%s view syncing failed to apply changes", view->index->filepath);