From: Timo Sirainen Date: Thu, 29 Apr 2004 00:13:05 +0000 (+0300) Subject: assert X-Git-Tag: 1.1.alpha1~4170 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58b8eb7600dad413e5ae4f638cce5ff778aad34d;p=thirdparty%2Fdovecot%2Fcore.git assert --HG-- branch : HEAD --- diff --git a/src/lib-index/mail-transaction-log.c b/src/lib-index/mail-transaction-log.c index ea3293a5dc..2c12bc4028 100644 --- a/src/lib-index/mail-transaction-log.c +++ b/src/lib-index/mail-transaction-log.c @@ -334,6 +334,8 @@ mail_transaction_log_file_create(struct mail_transaction_log *log, 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);