changeset 8312:963330c3df1e HEAD

If we detect that transaction log file size is invalid, mark the log corrupted.
author Timo Sirainen <tss@iki.fi>
date Wed, 22 Oct 2008 01:32:43 +0300
parents 2792b3a9b67a
children 284dea506006
files src/lib-index/mail-transaction-log-file.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-index/mail-transaction-log-file.c	Wed Oct 22 01:24:44 2008 +0300
+++ b/src/lib-index/mail-transaction-log-file.c	Wed Oct 22 01:32:43 2008 +0300
@@ -1174,7 +1174,7 @@
 	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);