dovecot-2.0: Fixed expunging appended message that had atomic ex...

dovecot at dovecot.org dovecot at dovecot.org
Mon Jul 13 22:07:46 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/2f54270904bf
changeset: 9615:2f54270904bf
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Jul 13 15:06:33 2009 -0400
description:
Fixed expunging appended message that had atomic extension changes done.

diffstat:

1 file changed, 5 insertions(+), 6 deletions(-)
src/lib-index/mail-index-transaction.c |   11 +++++------

diffs (35 lines):

diff -r d670b5d66302 -r 2f54270904bf src/lib-index/mail-index-transaction.c
--- a/src/lib-index/mail-index-transaction.c	Mon Jul 13 13:19:32 2009 -0400
+++ b/src/lib-index/mail-index-transaction.c	Mon Jul 13 15:06:33 2009 -0400
@@ -437,17 +437,16 @@ void mail_index_append_assign_uids(struc
 }
 
 static void
-mail_index_expunge_last_append_ext(struct mail_index_transaction *t,
-				   ARRAY_TYPE(seq_array_array) *updates,
+mail_index_expunge_last_append_ext(ARRAY_TYPE(seq_array_array) *ext_updates,
 				   uint32_t seq)
 {
 	ARRAY_TYPE(seq_array) *seqs;
 	unsigned int i, count, idx;
 
-	if (!array_is_created(updates))
+	if (!array_is_created(ext_updates))
 		return;
 
-	seqs = array_get_modifiable(&t->ext_rec_updates, &count);
+	seqs = array_get_modifiable(ext_updates, &count);
 	for (i = 0; i < count; i++) {
 		if (array_is_created(&seqs[i]) &&
 		    mail_index_seq_array_lookup(&seqs[i], seq, &idx))
@@ -464,8 +463,8 @@ mail_index_expunge_last_append(struct ma
 	i_assert(seq == t->last_new_seq);
 
 	/* remove extension updates */
-	mail_index_expunge_last_append_ext(t, &t->ext_rec_updates, seq);
-	mail_index_expunge_last_append_ext(t, &t->ext_rec_atomics, seq);
+	mail_index_expunge_last_append_ext(&t->ext_rec_updates, seq);
+	mail_index_expunge_last_append_ext(&t->ext_rec_atomics, seq);
 	t->log_ext_updates = mail_index_transaction_has_ext_changes(t);
 
 	/* remove keywords */


More information about the dovecot-cvs mailing list