dovecot-1.3: maildir saving: If dovecot-uidlist reading failed, ...

dovecot at dovecot.org dovecot at dovecot.org
Mon Apr 13 23:11:48 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.3/rev/98e2f0e3503e
changeset: 9094:98e2f0e3503e
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Apr 13 16:11:15 2009 -0400
description:
maildir saving: If dovecot-uidlist reading failed, we might have gone forward and crashed.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/lib-storage/index/maildir/maildir-save.c |    2 +-

diffs (12 lines):

diff -r f6bbb5c6d57c -r 98e2f0e3503e src/lib-storage/index/maildir/maildir-save.c
--- a/src/lib-storage/index/maildir/maildir-save.c	Mon Apr 13 16:01:40 2009 -0400
+++ b/src/lib-storage/index/maildir/maildir-save.c	Mon Apr 13 16:11:15 2009 -0400
@@ -624,7 +624,7 @@ maildir_transaction_save_commit_pre_sync
 	if (maildir_sync_header_refresh(mbox) < 0)
 		return -1;
 	if (maildir_uidlist_refresh_fast_init(mbox->uidlist) < 0)
-		return 1;
+		return -1;
 
 	/* now that uidlist is locked, make sure all the existing mails
 	   have been added to index. we don't really look into the


More information about the dovecot-cvs mailing list