dovecot: Don't try to recreate dovecot-uidlist if we're not locked.

dovecot at dovecot.org dovecot at dovecot.org
Thu Jan 10 04:30:14 EET 2008


details:   http://hg.dovecot.org/dovecot/rev/7424de4bac23
changeset: 7139:7424de4bac23
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Jan 10 04:30:10 2008 +0200
description:
Don't try to recreate dovecot-uidlist if we're not locked.

diffstat:

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

diffs (15 lines):

diff -r 876c7bca351c -r 7424de4bac23 src/lib-storage/index/maildir/maildir-uidlist.c
--- a/src/lib-storage/index/maildir/maildir-uidlist.c	Thu Jan 10 04:23:23 2008 +0200
+++ b/src/lib-storage/index/maildir/maildir-uidlist.c	Thu Jan 10 04:30:10 2008 +0200
@@ -1405,7 +1405,10 @@ int maildir_uidlist_sync_deinit(struct m
 	if (ctx->partial)
 		maildir_uidlist_mark_all(ctx->uidlist, FALSE);
 
-	if ((ctx->changed || ctx->uidlist->recreate) && !ctx->failed) {
+	i_assert(ctx->locked || !ctx->changed);
+	if ((ctx->changed || ctx->uidlist->recreate) &&
+	    !ctx->failed && ctx->locked) {
+		i_assert(ctx->locked);
 		T_FRAME(
 			ret = maildir_uidlist_sync_update(ctx);
 		);


More information about the dovecot-cvs mailing list