]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Exclude non-filters on filters stage
authorVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 7 May 2022 13:32:01 +0000 (14:32 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 7 May 2022 13:32:01 +0000 (14:32 +0100)
src/libserver/symcache/symcache_runtime.cxx

index 401cdb02771eab0e2eb69b056ba590c2addb4ec3..263e3571480b029a945818bec58c0ed6426a9df9 100644 (file)
@@ -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(),