]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: Remove reason_code=mailbox:search
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 10 Jan 2022 17:46:12 +0000 (19:46 +0200)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 11 Jan 2022 08:04:55 +0000 (10:04 +0200)
Continues the slow per-mail event removals started in
f3c568e3cbc113920bc029e07e56619589c6a26d.

Reverts 87cd6570a14b3f572fc6000f710df409371a4bcb

src/lib-storage/index/index-search.c

index ab20efaeafa9091c34e85060ebca0db9c92a319a..a094f3c5b33b9f6ad138dc81f1cb014392095f9e 100644 (file)
@@ -1402,16 +1402,12 @@ static int search_match_once(struct index_search_context *ctx)
 {
        int ret;
 
-       /* Use search as the reason only while specifically matching the search
-          parameters, not while prefetching wanted_fields. */
-       struct event_reason *reason = event_reason_begin("mailbox:search");
        ret = mail_search_args_foreach(ctx->mail_ctx.args->args,
                                       search_cached_arg, ctx);
        if (ret < 0)
                ret = search_arg_match_text(ctx->mail_ctx.args->args, ctx);
        if (ret < 0)
                ret = index_search_mime_arg_match(ctx->mail_ctx.args->args, ctx);
-       event_reason_end(&reason);
        return ret;
 }