Mercurial > dovecot > core-2.2
changeset 22412:50a22a23193a
indexer-worker: Log number of indexing attempts in transaction commit failure
This could be interesting if the number is large.
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Sun, 18 Jun 2017 13:04:43 +0300 |
parents | 2e37d35c7377 |
children | 633ca13ae99c |
files | src/indexer/master-connection.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/indexer/master-connection.c Sun Jun 18 13:00:57 2017 +0300 +++ b/src/indexer/master-connection.c Sun Jun 18 13:04:43 2017 +0300 @@ -116,9 +116,11 @@ ret = -1; } if (mailbox_transaction_commit(&trans) < 0) { - i_error("Mailbox %s: Transaction commit failed: %s", + i_error("Mailbox %s: Transaction commit failed: %s" + " (attempted to index %u messages)", mailbox_get_vname(box), - mailbox_get_last_internal_error(box, NULL)); + mailbox_get_last_internal_error(box, NULL), + counter); ret = -1; } else { i_info("Indexed %u messages in %s",