Skip to content

Commit

Permalink
indexer-worker: Log number of indexing attempts in transaction commit…
Browse files Browse the repository at this point in the history
… failure

This could be interesting if the number is large.
  • Loading branch information
sirainen committed Jun 18, 2017
1 parent e4065b3 commit 14eac90
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/indexer/master-connection.c
Expand Up @@ -116,9 +116,11 @@ index_mailbox_precache(struct master_connection *conn, struct mailbox *box)
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",
Expand Down

0 comments on commit 14eac90

Please sign in to comment.