From: Vsevolod Stakhov Date: Sat, 25 Jan 2025 13:45:34 +0000 (+0000) Subject: [Minor] Run finish scripts for fuzzy workers X-Git-Tag: 3.11.1~28 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=425c39e3b095fa3df7bccee44097ec2f832f8e9d;p=thirdparty%2Frspamd.git [Minor] Run finish scripts for fuzzy workers --- diff --git a/src/libserver/worker_util.c b/src/libserver/worker_util.c index 75836573ff..39e70e4ca3 100644 --- a/src/libserver/worker_util.c +++ b/src/libserver/worker_util.c @@ -1,5 +1,5 @@ /* - * Copyright 2024 Vsevolod Stakhov + * Copyright 2025 Vsevolod Stakhov * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -190,7 +190,7 @@ rspamd_worker_terminate_handlers(struct rspamd_worker *w) if (w->state != rspamd_worker_wait_final_scripts) { w->state = rspamd_worker_wait_final_scripts; - if ((w->flags & RSPAMD_WORKER_SCANNER) && + if ((w->flags & (RSPAMD_WORKER_SCANNER|RSPAMD_WORKER_FUZZY)) && rspamd_worker_call_finish_handlers(w)) { msg_info("performing async finishing actions"); w->state = rspamd_worker_wait_final_scripts; diff --git a/src/rspamd.h b/src/rspamd.h index a5ef068e17..be66a192b7 100644 --- a/src/rspamd.h +++ b/src/rspamd.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Vsevolod Stakhov + * Copyright 2025 Vsevolod Stakhov * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -69,6 +69,7 @@ enum rspamd_worker_flags { RSPAMD_WORKER_NO_TERMINATE_DELAY = (1 << 7), RSPAMD_WORKER_OLD_CONFIG = (1 << 8), RSPAMD_WORKER_NO_STRICT_CONFIG = (1 << 9), + RSPAMD_WORKER_FUZZY = (1 << 10), }; struct rspamd_worker_accept_event {