Mercurial > dovecot > core-2.2
changeset 4245:be915546ce49 HEAD
Fix
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 03 May 2006 21:59:38 +0300 |
parents | b9a7a9592f43 |
children | 524a584f2302 |
files | src/lib-storage/index/dbox/dbox-uidlist.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/dbox/dbox-uidlist.c Wed May 03 01:06:32 2006 +0300 +++ b/src/lib-storage/index/dbox/dbox-uidlist.c Wed May 03 21:59:38 2006 +0300 @@ -1153,6 +1153,7 @@ { /* Note that unless uidlist is locked, it's not guaranteed that this actually returns a new unused file sequence. */ + i_assert(uidlist->file_seq_highwater >= uidlist->last_file_seq); return ++uidlist->file_seq_highwater; } @@ -1270,6 +1271,8 @@ if (new_entry->file_seq > ctx->uidlist->last_file_seq) ctx->uidlist->last_file_seq = new_entry->file_seq; + if (new_entry->file_seq > ctx->uidlist->file_seq_highwater) + ctx->uidlist->file_seq_highwater = new_entry->file_seq; dbox_uidlist_update_last_uid(ctx->uidlist, new_entry); entries = array_get(&ctx->uidlist->entries, &count);