From: Timo Sirainen Date: Mon, 10 Jan 2022 17:46:12 +0000 (+0200) Subject: lib-storage: Remove reason_code=mailbox:search X-Git-Tag: 2.3.18~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26c5c2aa2bb95b14bb4912efff189e9892a405ce;p=thirdparty%2Fdovecot%2Fcore.git lib-storage: Remove reason_code=mailbox:search Continues the slow per-mail event removals started in f3c568e3cbc113920bc029e07e56619589c6a26d. Reverts 87cd6570a14b3f572fc6000f710df409371a4bcb --- diff --git a/src/lib-storage/index/index-search.c b/src/lib-storage/index/index-search.c index ab20efaeaf..a094f3c5b3 100644 --- a/src/lib-storage/index/index-search.c +++ b/src/lib-storage/index/index-search.c @@ -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; }