dovecot: Added new assert

dovecot at dovecot.org dovecot at dovecot.org
Sun Jul 15 01:05:01 EEST 2007


details:   http://hg.dovecot.org/dovecot/rev/2d81847eb3e6
changeset: 6001:2d81847eb3e6
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Jul 15 01:04:56 2007 +0300
description:
Added new assert

diffstat:

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

diffs (21 lines):

diff -r 5aaaed0457aa -r 2d81847eb3e6 src/lib-index/mail-index-view-sync.c
--- a/src/lib-index/mail-index-view-sync.c	Sun Jul 15 00:53:46 2007 +0300
+++ b/src/lib-index/mail-index-view-sync.c	Sun Jul 15 01:04:56 2007 +0300
@@ -148,6 +148,7 @@ view_sync_get_expunges(struct mail_index
 	struct seq_range *src, *src_end, *dest;
 	const void *data;
 	unsigned int count, expunge_count = 0;
+	uint32_t prev_seq = 0;
 	int ret;
 
 	if (view_sync_set_log_view_range(view, TRUE) < 0)
@@ -193,6 +194,9 @@ view_sync_get_expunges(struct mail_index
 		if (dest->seq1 == 0)
 			count--;
 		else {
+			i_assert(dest->seq1 > prev_seq);
+			prev_seq = dest->seq2;
+
 			expunge_count += dest->seq2 - dest->seq1 + 1;
 			dest++;
 		}


More information about the dovecot-cvs mailing list