dovecot-1.2: maildir: Expunging last messages may have assert-cr...

dovecot at dovecot.org dovecot at dovecot.org
Tue May 25 17:32:59 EEST 2010


details:   http://hg.dovecot.org/dovecot-1.2/rev/d86c7d94f372
changeset: 9571:d86c7d94f372
user:      Timo Sirainen <tss at iki.fi>
date:      Tue May 25 15:23:32 2010 +0100
description:
maildir: Expunging last messages may have assert-crashed if their filenames had changed.

diffstat:

 src/lib-storage/index/maildir/maildir-sync-index.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 5f0e937ae245 -r d86c7d94f372 src/lib-storage/index/maildir/maildir-sync-index.c
--- a/src/lib-storage/index/maildir/maildir-sync-index.c	Tue May 18 10:07:58 2010 +0200
+++ b/src/lib-storage/index/maildir/maildir-sync-index.c	Tue May 25 15:23:32 2010 +0100
@@ -540,7 +540,6 @@
 		maildir_sync_mail_keywords(ctx, seq);
 	}
 	maildir_uidlist_iter_deinit(&iter);
-	mbox->syncing_commit = FALSE;
 
 	if (!partial) {
 		/* expunge the rest */
@@ -603,6 +602,7 @@
 	}
 	array_free(&ctx->keywords);
 	array_free(&ctx->idx_keywords);
+	mbox->syncing_commit = FALSE;
 	return ret < 0 ? -1 : (full_rescan ? 0 : 1);
 }
 


More information about the dovecot-cvs mailing list