From: Vsevolod Stakhov Date: Sun, 24 Sep 2017 20:57:13 +0000 (+0100) Subject: [Minor] Try to deal with idempotent symbols processing X-Git-Tag: 1.7.0~612 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f56336fe7329e5ea1f5f6e65de1845e8150b09cf;p=thirdparty%2Frspamd.git [Minor] Try to deal with idempotent symbols processing Issue: #1846 --- diff --git a/src/libserver/symbols_cache.c b/src/libserver/symbols_cache.c index d07d42d10f..de0a806fa2 100644 --- a/src/libserver/symbols_cache.c +++ b/src/libserver/symbols_cache.c @@ -1633,6 +1633,10 @@ rspamd_symbols_cache_process_symbols (struct rspamd_task * task, RSPAMD_CACHE_PASS_POSTFILTERS) { checkpoint->pass = RSPAMD_CACHE_PASS_POSTFILTERS; } + if (stage == RSPAMD_TASK_STAGE_IDEMPOTENT && checkpoint->pass < + RSPAMD_CACHE_PASS_IDEMPOTENT) { + checkpoint->pass = RSPAMD_CACHE_PASS_IDEMPOTENT; + } msg_debug_task ("symbols processing stage at pass: %d", checkpoint->pass); start_events_pending = rspamd_session_events_pending (task->s);