dovecot-1.2: Improved "Transaction log corrupted unexpectedly" e...

dovecot at dovecot.org dovecot at dovecot.org
Mon Jan 12 17:44:18 EET 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/37e74d43ff26
changeset: 8613:37e74d43ff26
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Jan 12 10:44:13 2009 -0500
description:
Improved "Transaction log corrupted unexpectedly" error message.

diffstat:

1 file changed, 3 insertions(+), 1 deletion(-)
src/lib-index/mail-transaction-log-file.c |    4 +++-

diffs (14 lines):

diff -r 3ee12ca9e2c4 -r 37e74d43ff26 src/lib-index/mail-transaction-log-file.c
--- a/src/lib-index/mail-transaction-log-file.c	Mon Jan 12 10:43:55 2009 -0500
+++ b/src/lib-index/mail-transaction-log-file.c	Mon Jan 12 10:44:13 2009 -0500
@@ -913,7 +913,9 @@ log_get_synced_record(struct mail_transa
 	if (trans_size < sizeof(*hdr) ||
 	    *offset - file->buffer_offset + trans_size > file->buffer->used) {
 		mail_transaction_log_file_set_corrupted(file,
-			"Transaction log corrupted unexpectedly");
+			"Transaction log corrupted unexpectedly at "
+			"%"PRIuUOFF_T": Invalid size %u (type=%x)",
+			*offset, trans_size, hdr->type);
 		return -1;
 	}
 	*offset += trans_size;


More information about the dovecot-cvs mailing list