dovecot-1.2: Crashfix to handling missing transaction logs.

dovecot at dovecot.org dovecot at dovecot.org
Sat Dec 13 12:41:51 EET 2008


details:   http://hg.dovecot.org/dovecot-1.2/rev/60ea101c7534
changeset: 8530:60ea101c7534
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Dec 13 12:38:43 2008 +0200
description:
Crashfix to handling missing transaction logs.

diffstat:

1 file changed, 6 insertions(+), 1 deletion(-)
src/lib-index/mail-index-view-sync.c |    7 ++++++-

diffs (17 lines):

diff -r e7b0a099c33d -r 60ea101c7534 src/lib-index/mail-index-view-sync.c
--- 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 @@ mail_index_view_sync_begin(struct mail_i
 		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);


More information about the dovecot-cvs mailing list