changeset 5776:5ce403e0ef56 HEAD

Log also the position in log file for sync errors.
author Timo Sirainen <tss@iki.fi>
date Tue, 19 Jun 2007 16:15:01 +0300
parents 98d5e3bd4d13
children a8926e90df2a
files src/lib-index/mail-index-sync.c
diffstat 1 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-index/mail-index-sync.c	Tue Jun 19 15:26:47 2007 +0300
+++ b/src/lib-index/mail-index-sync.c	Tue Jun 19 16:15:01 2007 +0300
@@ -695,12 +695,18 @@
 				   const char *fmt, ...)
 {
 	va_list va;
+	uint32_t seq;
+	uoff_t offset;
+
+	mail_transaction_log_view_get_prev_pos(ctx->view->log_view,
+					       &seq, &offset);
 
 	va_start(va, fmt);
 	t_push();
 	mail_index_set_error(ctx->view->index,
-			     "Synchronization error from %s: %s",
-			     ctx->view->index->filepath,
+			     "Log synchronization error at "
+			     "seq=%u,offset=%"PRIuUOFF_T" for %s: %s",
+			     seq, offset, ctx->view->index->filepath,
 			     t_strdup_vprintf(fmt, va));
 	t_pop();
 	va_end(va);