commit 93bba96: [Minor] Exclude non-filters on filters stage

Vsevolod Stakhov vsevolod at rspamd.com
Sat May 7 13:35:03 UTC 2022


Author: Vsevolod Stakhov
Date: 2022-05-07 14:32:01 +0100
URL: https://github.com/rspamd/rspamd/commit/93bba96c2ea75f60016086144c085b4118682e94 (HEAD -> master)

[Minor] Exclude non-filters on filters stage

---
 src/libserver/symcache/symcache_runtime.cxx | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/libserver/symcache/symcache_runtime.cxx b/src/libserver/symcache/symcache_runtime.cxx
index 401cdb027..263e35714 100644
--- a/src/libserver/symcache/symcache_runtime.cxx
+++ b/src/libserver/symcache/symcache_runtime.cxx
@@ -424,13 +424,14 @@ symcache_runtime::process_filters(struct rspamd_task *task, symcache &cache, int
 	auto all_done = true;
 
 	for (const auto [idx, item] : rspamd::enumerate(order->d)) {
-		if (item->type == symcache_item_type::CLASSIFIER || item->type == symcache_item_type::COMPOSITE) {
+		/* Exclude all non filters */
+		if (item->type != symcache_item_type::FILTER) {
 			continue;
 		}
 
 		auto dyn_item = &dynamic_items[idx];
 
-		if (!dyn_item->started && !dyn_item->finished) {
+		if (!dyn_item->started) {
 			all_done = false;
 
 			if (!check_item_deps(task, cache, item.get(),


More information about the Commits mailing list