dovecot-1.2: Fix to mail_index_transaction_get_next_uid() fix.
dovecot at dovecot.org
dovecot at dovecot.org
Thu Jan 22 02:40:43 EET 2009
details: http://hg.dovecot.org/dovecot-1.2/rev/9c0b76fa8ef6
changeset: 8674:9c0b76fa8ef6
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 8f1fc77aea7e -r 9c0b76fa8ef6 src/lib-index/mail-index-transaction.c
--- a/src/lib-index/mail-index-transaction.c Wed Jan 21 18:31:12 2009 -0500
+++ b/src/lib-index/mail-index-transaction.c Wed Jan 21 19:40:19 2009 -0500
@@ -544,7 +544,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