dovecot-1.2: indexes: Added a new assert.
dovecot at dovecot.org
dovecot at dovecot.org
Tue Apr 14 01:24:14 EEST 2009
details: http://hg.dovecot.org/dovecot-1.2/rev/653197bf5f55
changeset: 8942:653197bf5f55
user: Timo Sirainen <tss at iki.fi>
date: Mon Apr 13 18:21:24 2009 -0400
description:
indexes: Added a new assert.
diffstat:
1 file changed, 4 insertions(+)
src/lib-index/mail-transaction-log-view.c | 4 ++++
diffs (14 lines):
diff -r eb9e5ab575a9 -r 653197bf5f55 src/lib-index/mail-transaction-log-view.c
--- a/src/lib-index/mail-transaction-log-view.c Mon Apr 13 17:21:32 2009 -0400
+++ b/src/lib-index/mail-transaction-log-view.c Mon Apr 13 18:21:24 2009 -0400
@@ -284,6 +284,10 @@ int mail_transaction_log_view_set(struct
max_file_seq == view->head->hdr.file_seq);
i_assert(max_file_offset == (uoff_t)-1 ||
max_file_offset <= view->head->sync_offset);
+ i_assert(min_file_seq != max_file_seq ||
+ max_file_seq != view->head->hdr.file_seq ||
+ max_file_offset != (uoff_t)-1 ||
+ min_file_offset <= view->head->sync_offset);
view->prev_file_seq = view->cur->hdr.file_seq;
view->prev_file_offset = view->cur_offset;
More information about the dovecot-cvs
mailing list