From e4065b371a07ab584c02803125467cb9df26690e Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 18 Jun 2017 13:00:57 +0300 Subject: [PATCH] indexer-worker: Log "Indexed .. messages" even if mailbox_search fails The transaction is still being committed. --- src/indexer/master-connection.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/indexer/master-connection.c b/src/indexer/master-connection.c index 18ced001e3..db2813ca92 100644 --- a/src/indexer/master-connection.c +++ b/src/indexer/master-connection.c @@ -120,8 +120,7 @@ index_mailbox_precache(struct master_connection *conn, struct mailbox *box) mailbox_get_vname(box), mailbox_get_last_internal_error(box, NULL)); ret = -1; - } - if (ret == 0) { + } else { i_info("Indexed %u messages in %s", counter, mailbox_get_vname(box)); }