dovecot-2.0: mail_index_expunge: Drop also modseq updates when e...

dovecot at dovecot.org dovecot at dovecot.org
Tue Aug 4 21:35:31 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/810a70b696fc
changeset: 9719:810a70b696fc
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Aug 03 15:20:11 2009 -0400
description:
mail_index_expunge: Drop also modseq updates when expunging a newly appended record.

diffstat:

1 file changed, 4 insertions(+)
src/lib-index/mail-index-transaction-update.c |    4 ++++

diffs (14 lines):

diff -r 1d3fbe678158 -r 810a70b696fc src/lib-index/mail-index-transaction-update.c
--- a/src/lib-index/mail-index-transaction-update.c	Mon Aug 03 13:33:50 2009 -0400
+++ b/src/lib-index/mail-index-transaction-update.c	Mon Aug 03 15:20:11 2009 -0400
@@ -315,6 +315,10 @@ mail_index_expunge_last_append(struct ma
 			}
 		}
 	}
+	/* remove modseqs */
+	if (array_is_created(&t->modseq_updates) &&
+	    mail_index_seq_array_lookup((void *)&t->modseq_updates, seq, &i))
+		array_delete(&t->modseq_updates, i, 1);
 
 	/* and finally remove the append itself */
 	array_delete(&t->appends, seq - t->first_new_seq, 1);


More information about the dovecot-cvs mailing list