changeset 19655:5bdb2be321ba

lib-index: If transaction log was locked for at least 30 secs, log a warning (not at 3min) This is because we log a warning about it already when locking it took 30 seconds, so it's useful to see which process was actually keeping the lock.
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Thu, 28 Jan 2016 13:45:48 +0200
parents ff56bb2c713c
children 5cc83e9cbfee
files src/lib-index/mail-transaction-log-file.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-index/mail-transaction-log-file.c	Wed Jan 27 15:44:54 2016 +0200
+++ b/src/lib-index/mail-transaction-log-file.c	Thu Jan 28 13:45:48 2016 +0200
@@ -409,7 +409,7 @@
 		return;
 
 	lock_time = time(NULL) - file->lock_created;
-	if (lock_time >= MAIL_TRANSACTION_LOG_LOCK_TIMEOUT && lock_reason != NULL) {
+	if (lock_time >= MAIL_TRANSACTION_LOG_LOCK_WARN_SECS && lock_reason != NULL) {
 		i_warning("Transaction log file %s was locked for %u seconds (%s)",
 			  file->filepath, lock_time, lock_reason);
 	}