changeset 1936:bb1bde2680b0 HEAD

assert
author Timo Sirainen <tss@iki.fi>
date Thu, 29 Apr 2004 03:13:05 +0300
parents ec4d5ff99f6e
children f56d502b248b
files src/lib-index/mail-transaction-log.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-index/mail-transaction-log.c	Thu Apr 29 03:08:00 2004 +0300
+++ b/src/lib-index/mail-transaction-log.c	Thu Apr 29 03:13:05 2004 +0300
@@ -334,6 +334,8 @@
 		hdr.prev_file_offset = index->hdr->log_file_offset;
 	hdr.file_seq = index->hdr->log_file_seq+1;
 
+	i_assert(log->head == NULL || hdr.file_seq > log->head->hdr.file_seq);
+
 	if (write_full(fd, &hdr, sizeof(hdr)) < 0) {
 		mail_index_file_set_syscall_error(index, path, "write_full()");
                 (void)file_dotlock_delete(path, fd);