diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-05-07 14:59:38 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-05-07 14:59:38 +0100 |
commit | 26689fd064825b8a31282a50c8b5d7eaefeaff10 (patch) | |
tree | 88b390dd93967a780c69be9d25ffa99552e78239 /src/libstat/stat_process.c | |
parent | 691ec14cc2c40a5fb891d01de4358a3275722ad4 (diff) | |
download | rspamd-26689fd064825b8a31282a50c8b5d7eaefeaff10.tar.gz rspamd-26689fd064825b8a31282a50c8b5d7eaefeaff10.zip |
[Minor] Add hack to allow empty cache runtime for learning
Diffstat (limited to 'src/libstat/stat_process.c')
-rw-r--r-- | src/libstat/stat_process.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstat/stat_process.c b/src/libstat/stat_process.c index ac618770c..6683990c0 100644 --- a/src/libstat/stat_process.c +++ b/src/libstat/stat_process.c @@ -320,7 +320,7 @@ rspamd_stat_preprocess (struct rspamd_stat_ctx *st_ctx, continue; } - if (!rspamd_symcache_is_symbol_enabled (task, task->cfg->cache, + if (!is_learn && !rspamd_symcache_is_symbol_enabled (task, task->cfg->cache, st->stcf->symbol)) { g_ptr_array_index (task->stat_runtimes, i) = NULL; msg_debug_bayes ("symbol %s is disabled, skip classification", |