dovecot-1.1: Fix to previous cleanup.

dovecot at dovecot.org dovecot at dovecot.org
Thu May 15 05:36:47 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.1/rev/b2e844f4214b
changeset: 7513:b2e844f4214b
user:      Timo Sirainen <tss at iki.fi>
date:      Thu May 15 05:36:43 2008 +0300
description:
Fix to previous cleanup.

diffstat:

1 file changed, 4 insertions(+)
src/lib-storage/index/maildir/maildir-save.c |    4 ++++

diffs (14 lines):

diff -r 534d93ab2fac -r b2e844f4214b src/lib-storage/index/maildir/maildir-save.c
--- a/src/lib-storage/index/maildir/maildir-save.c	Thu May 15 05:22:56 2008 +0300
+++ b/src/lib-storage/index/maildir/maildir-save.c	Thu May 15 05:36:43 2008 +0300
@@ -624,6 +624,10 @@ int maildir_transaction_save_commit_pre(
 
 	ctx->locked = ret > 0;
 	if (ctx->locked) {
+		/* we'll need to keep the lock past the sync deinit */
+		ret = maildir_uidlist_lock(ctx->mbox->uidlist);
+		i_assert(ret > 0);
+
 		if (maildir_sync_index_begin(ctx->mbox, NULL,
 					     &ctx->sync_ctx) < 0) {
 			maildir_transaction_save_rollback(ctx);


More information about the dovecot-cvs mailing list