From: Timo Sirainen Date: Sun, 18 Jun 2017 10:00:57 +0000 (+0300) Subject: indexer-worker: Log "Indexed .. messages" even if mailbox_search fails X-Git-Tag: 2.3.0.rc1~1402 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e4065b371a07ab584c02803125467cb9df26690e;p=thirdparty%2Fdovecot%2Fcore.git indexer-worker: Log "Indexed .. messages" even if mailbox_search fails The transaction is still being committed. --- 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)); }