Skip to content

Commit

Permalink
lib-index: If mail_transaction_log_lock_head() locking took long, inc…
Browse files Browse the repository at this point in the history
…lude reason string in warning
  • Loading branch information
sirainen committed Feb 22, 2016
1 parent 62958c5 commit d68a021
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib-index/mail-transaction-log.c
Expand Up @@ -479,8 +479,8 @@ int mail_transaction_log_lock_head(struct mail_transaction_log *log,
/* 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);
Expand Down

0 comments on commit d68a021

Please sign in to comment.