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.2.32.rc1~21 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=43d8925cd335fca44bdf5e00f9a4925728c4f275;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 a16866e016..3d258a83f0 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)); }