From: Timo Sirainen Date: Tue, 21 Oct 2008 22:32:43 +0000 (+0300) Subject: If we detect that transaction log file size is invalid, mark the log corrupted. X-Git-Tag: 1.2.alpha3~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=86581c5a511d90fb823cf3c5987b7543e5b86328;p=thirdparty%2Fdovecot%2Fcore.git If we detect that transaction log file size is invalid, mark the log corrupted. --HG-- branch : HEAD --- diff --git a/src/lib-index/mail-transaction-log-file.c b/src/lib-index/mail-transaction-log-file.c index 1b93a37cfb..4b4a70b279 100644 --- a/src/lib-index/mail-transaction-log-file.c +++ b/src/lib-index/mail-transaction-log-file.c @@ -1174,7 +1174,7 @@ mail_transaction_log_file_sync(struct mail_transaction_log_file *file) if (file->next != NULL && file->hdr.file_seq == file->next->hdr.prev_file_seq && file->next->hdr.prev_file_offset != file->sync_offset) { - mail_index_set_error(file->log->index, + mail_transaction_log_file_set_corrupted(file, "Invalid transaction log size " "(%"PRIuUOFF_T" vs %u): %s", file->sync_offset, file->log->head->hdr.prev_file_offset, file->filepath);