dovecot: Log also the position in log file for sync errors.
dovecot at dovecot.org
dovecot at dovecot.org
Tue Jun 19 16:18:17 EEST 2007
details: http://hg.dovecot.org/dovecot/rev/5ce403e0ef56
changeset: 5776:5ce403e0ef56
user: Timo Sirainen <tss at iki.fi>
date: Tue Jun 19 16:15:01 2007 +0300
description:
Log also the position in log file for sync errors.
diffstat:
1 file changed, 8 insertions(+), 2 deletions(-)
src/lib-index/mail-index-sync.c | 10 ++++++++--
diffs (24 lines):
diff -r 98d5e3bd4d13 -r 5ce403e0ef56 src/lib-index/mail-index-sync.c
--- 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 @@ void mail_index_sync_set_corrupted(struc
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);
More information about the dovecot-cvs
mailing list