dovecot-2.0: mdbox: Fixed assert-crash on storage rebuild if fil...

dovecot at dovecot.org dovecot at dovecot.org
Wed Jun 23 18:58:23 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/182d1834f643
changeset: 11622:182d1834f643
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Jun 23 16:58:18 2010 +0100
description:
mdbox: Fixed assert-crash on storage rebuild if file got lost.

diffstat:

 src/lib-storage/index/dbox-multi/mdbox-storage-rebuild.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 1cc5486f466b -r 182d1834f643 src/lib-storage/index/dbox-multi/mdbox-storage-rebuild.c
--- a/src/lib-storage/index/dbox-multi/mdbox-storage-rebuild.c	Wed Jun 23 16:54:37 2010 +0100
+++ b/src/lib-storage/index/dbox-multi/mdbox-storage-rebuild.c	Wed Jun 23 16:58:18 2010 +0100
@@ -614,7 +614,7 @@
 	   saved to */
 	file = mdbox_file_init(ctx->storage, msg->file_id);
 	ret = dbox_file_open(file, &deleted);
-	if (ret > 0)
+	if (ret > 0 && !deleted)
 		ret = dbox_file_get_mail_stream(file, msg->offset, NULL);
 	if (ret > 0 && !deleted && dbox_file_metadata_read(file) > 0) {
 		mailbox = dbox_file_metadata_get(file,


More information about the dovecot-cvs mailing list