Mercurial > dovecot > core-2.2
changeset 17568:d25443778208
lib-index: Recent idx->seq change in strmap forgot to initialize uid_lookup_seq in one place.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 02 Jul 2014 23:41:10 +0300 |
parents | f2f9181f42b1 |
children | 6fcf8199b079 |
files | src/lib-index/mail-index-strmap.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-index/mail-index-strmap.c Wed Jul 02 20:53:46 2014 +0300 +++ b/src/lib-index/mail-index-strmap.c Wed Jul 02 23:41:10 2014 +0300 @@ -381,6 +381,8 @@ { const struct mail_index_record *rec; + i_assert(ctx->uid_lookup_seq > 0); + if (ctx->uid_lookup_seq > ctx->view->view->map->hdr.messages_count) { if (uid >= ctx->view->view->map->hdr.next_uid) { /* thread index has larger UIDs than what we've seen @@ -826,6 +828,7 @@ memset(&ctx, 0, sizeof(ctx)); ctx.view = view; + ctx.uid_lookup_seq = 1; /* create a map of old -> new index and remove records of expunged messages */