]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Try to deal with idempotent symbols processing
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 24 Sep 2017 20:57:13 +0000 (21:57 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 24 Sep 2017 20:58:39 +0000 (21:58 +0100)
Issue: #1846

src/libserver/symbols_cache.c

index d07d42d10f94d7fc58fe3390acb1de77d39dc06c..de0a806fa283c2163bf083c92dd61adf79750643 100644 (file)
@@ -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);