dovecot-2.2: lib-index: Recent idx->seq change in strmap forgot ...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Jul 2 20:42:45 UTC 2014
details: http://hg.dovecot.org/dovecot-2.2/rev/d25443778208
changeset: 17568:d25443778208
user: Timo Sirainen <tss at iki.fi>
date: Wed Jul 02 23:41:10 2014 +0300
description:
lib-index: Recent idx->seq change in strmap forgot to initialize uid_lookup_seq in one place.
diffstat:
src/lib-index/mail-index-strmap.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (20 lines):
diff -r f2f9181f42b1 -r d25443778208 src/lib-index/mail-index-strmap.c
--- 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 */
More information about the dovecot-cvs
mailing list