Mercurial > dovecot > core-2.2
changeset 17925:ec1fd3dc0a74
lib-index: If locking transaction log times out, show the PID which has it locked.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 09 Oct 2014 18:20:56 +0300 |
parents | 1c3dcade6f02 |
children | 623a9f46c747 |
files | src/lib-index/mail-transaction-log-file.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-index/mail-transaction-log-file.c Thu Oct 09 18:19:11 2014 +0300 +++ b/src/lib-index/mail-transaction-log-file.c Thu Oct 09 18:20:56 2014 +0300 @@ -387,8 +387,9 @@ mail_index_set_error(file->log->index, "Timeout (%us) while waiting for lock for " - "transaction log file %s", - lock_timeout_secs, file->filepath); + "transaction log file %s%s", + lock_timeout_secs, file->filepath, + file_lock_find(file->fd, file->log->index->lock_method, F_WRLCK)); file->log->index->index_lock_timeout = TRUE; return -1; }