]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
indexer-worker: Log "Indexed .. messages" even if mailbox_search fails
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Sun, 18 Jun 2017 10:00:57 +0000 (13:00 +0300)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Thu, 10 Aug 2017 09:40:21 +0000 (12:40 +0300)
The transaction is still being committed.

src/indexer/master-connection.c

index a16866e01697f7d77f099a97dd4bbb65e35a3472..3d258a83f0378e12d3aa029fbbc583c4863ce3d7 100644 (file)
@@ -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));
        }