[dovecot-cvs] dovecot/src/lib-index mail-transaction-log-view.c, 1.22, 1.23

cras at dovecot.org cras at dovecot.org
Sun Aug 15 01:58:42 EEST 2004


Update of /home/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv2679

Modified Files:
	mail-transaction-log-view.c 
Log Message:
assert crashfix



Index: mail-transaction-log-view.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mail-transaction-log-view.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- mail-transaction-log-view.c	31 Jul 2004 04:35:06 -0000	1.22
+++ mail-transaction-log-view.c	14 Aug 2004 22:58:39 -0000	1.23
@@ -157,7 +157,8 @@
 			return -1;
 	}
 
-	i_assert(max_file_offset <= file->sync_offset);
+	i_assert(max_file_offset == (uoff_t)-1 ||
+		 max_file_offset <= file->sync_offset);
 
 	/* we have all of them. update refcounts. */
 	if (view->tail->hdr.file_seq < first->hdr.file_seq) {



More information about the dovecot-cvs mailing list