dovecot-1.1: Fix to mail_index_transaction_get_next_uid() fix.

dovecot at dovecot.org dovecot at dovecot.org
Thu Jan 22 02:40:27 EET 2009


details:   http://hg.dovecot.org/dovecot-1.1/rev/bc3a78d101be
changeset: 8119:bc3a78d101be
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Jan 21 19:40:19 2009 -0500
description:
Fix to mail_index_transaction_get_next_uid() fix.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/lib-index/mail-index-transaction.c |    2 +-

diffs (12 lines):

diff -r 2ff6769177bd -r bc3a78d101be src/lib-index/mail-index-transaction.c
--- a/src/lib-index/mail-index-transaction.c	Wed Jan 21 18:30:55 2009 -0500
+++ b/src/lib-index/mail-index-transaction.c	Wed Jan 21 19:40:19 2009 -0500
@@ -541,7 +541,7 @@ uint32_t mail_index_transaction_get_next
 	hdr = &t->view->map->hdr;
 	next_uid = t->reset || head_hdr->uid_validity != hdr->uid_validity ?
 		1 : hdr->next_uid;
-	if (array_is_created(&t->appends)) {
+	if (array_is_created(&t->appends) && t->highest_append_uid != 0) {
 		/* get next_uid from appends if they have UIDs */
 		i_assert(next_uid <= t->highest_append_uid);
 		next_uid = t->highest_append_uid;


More information about the dovecot-cvs mailing list