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

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


details:   http://hg.dovecot.org/dovecot-1.1/rev/db97656e3d8f
changeset: 8242:db97656e3d8f
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 576e77047959 -r db97656e3d8f src/lib-storage/index/maildir/maildir-save.c
--- a/src/lib-storage/index/maildir/maildir-save.c	Mon Apr 13 15:51:52 2009 -0400
+++ b/src/lib-storage/index/maildir/maildir-save.c	Mon Apr 13 16:11:15 2009 -0400
@@ -623,7 +623,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