dovecot-1.2: Expunging messages caused in-memory modseqs to be w...

dovecot at dovecot.org dovecot at dovecot.org
Thu Oct 8 18:15:14 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/f7f0bff8438a
changeset: 9418:f7f0bff8438a
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Oct 08 11:15:07 2009 -0400
description:
Expunging messages caused in-memory modseqs to be wrong.

diffstat:

1 file changed, 2 insertions(+), 2 deletions(-)
src/lib-index/mail-index-modseq.c |    4 ++--

diffs (14 lines):

diff -r 84e04d84d2b5 -r f7f0bff8438a src/lib-index/mail-index-modseq.c
--- a/src/lib-index/mail-index-modseq.c	Wed Oct 07 12:28:16 2009 -0400
+++ b/src/lib-index/mail-index-modseq.c	Thu Oct 08 11:15:07 2009 -0400
@@ -534,8 +534,8 @@ void mail_index_modseq_expunge(struct ma
 	seq1--;
 	metadata = array_get_modifiable(&ctx->mmap->metadata_modseqs, &count);
 	for (i = 0; i < count; i++) {
-		if (array_is_created(&metadata->modseqs))
-			array_delete(&metadata->modseqs, seq1, seq2-seq1);
+		if (array_is_created(&metadata[i].modseqs))
+			array_delete(&metadata[i].modseqs, seq1, seq2-seq1);
 	}
 
 	modseq = mail_transaction_log_view_get_prev_modseq(ctx->log_view);


More information about the dovecot-cvs mailing list