changeset 19802:78fd3c31f786

lib-index: If mail_transaction_log_lock_head() locking took long, include reason string in warning
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Mon, 22 Feb 2016 16:12:16 +0200
parents 30573edaa04f
children 4247beae5c8d
files src/lib-index/mail-transaction-log.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-index/mail-transaction-log.c	Mon Feb 22 11:47:16 2016 +0200
+++ b/src/lib-index/mail-transaction-log.c	Mon Feb 22 16:12:16 2016 +0200
@@ -479,8 +479,8 @@
 		/* try again */
 	}
 	if (lock_secs > MAIL_TRANSACTION_LOG_LOCK_WARN_SECS) {
-		i_warning("Locking transaction log file %s took %ld seconds",
-			  log->head->filepath, (long)lock_secs);
+		i_warning("Locking transaction log file %s took %ld seconds (%s)",
+			  log->head->filepath, (long)lock_secs, lock_reason);
 	}
 
 	i_assert(ret < 0 || log->head != NULL);