dovecot-2.0: lib-index: Added a missing error logging.

dovecot at dovecot.org dovecot at dovecot.org
Tue Jun 29 22:26:10 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/3156315704ef
changeset: 11659:3156315704ef
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Jun 29 20:26:04 2010 +0100
description:
lib-index: Added a missing error logging.

diffstat:

 src/lib-index/mail-index-sync-update.c |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (13 lines):

diff -r 9d9be6aa3a55 -r 3156315704ef src/lib-index/mail-index-sync-update.c
--- a/src/lib-index/mail-index-sync-update.c	Tue Jun 29 20:21:51 2010 +0100
+++ b/src/lib-index/mail-index-sync-update.c	Tue Jun 29 20:26:04 2010 +0100
@@ -962,6 +962,9 @@
 		mail_index_view_close(&view);
 		if (force && ret == 0) {
 			/* the seq/offset is probably broken */
+			mail_index_set_error(index, "Index %s: Lost log for "
+				"seq=%u offset=%"PRIuUOFF_T, index->filepath,
+				map->hdr.log_file_seq, start_offset);
 			(void)mail_index_fsck(index);
 		}
 		/* can't use it. sync by re-reading index. */


More information about the dovecot-cvs mailing list