aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-09-24 21:57:13 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-09-24 21:58:39 +0100
commitf56336fe7329e5ea1f5f6e65de1845e8150b09cf (patch)
tree7aecc4b222256f0b900ee090fdfb6e1c11400029 /src
parent8df02f2de43ece6a2fdcbbc0dd2c87e2b845bb13 (diff)
downloadrspamd-f56336fe7329e5ea1f5f6e65de1845e8150b09cf.tar.gz
rspamd-f56336fe7329e5ea1f5f6e65de1845e8150b09cf.zip
[Minor] Try to deal with idempotent symbols processing
Issue: #1846
Diffstat (limited to 'src')
-rw-r--r--src/libserver/symbols_cache.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libserver/symbols_cache.c b/src/libserver/symbols_cache.c
index d07d42d10..de0a806fa 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);