aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstat/stat_process.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-10-21 15:17:12 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-10-21 15:17:12 +0100
commit923f93fb6bad21c3a6edadca15e516daa05d1e5f (patch)
tree19f723c0a282d3af68c6ba131f4f6f59a724ad84 /src/libstat/stat_process.c
parent0261cb3c5f37b3cb6a6a1c5850b11d29838e4e0e (diff)
downloadrspamd-923f93fb6bad21c3a6edadca15e516daa05d1e5f.tar.gz
rspamd-923f93fb6bad21c3a6edadca15e516daa05d1e5f.zip
[Minor] Fix several issues found
Diffstat (limited to 'src/libstat/stat_process.c')
-rw-r--r--src/libstat/stat_process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstat/stat_process.c b/src/libstat/stat_process.c
index 35c9d1215..338dc3034 100644
--- a/src/libstat/stat_process.c
+++ b/src/libstat/stat_process.c
@@ -314,7 +314,7 @@ rspamd_stat_preprocess (struct rspamd_stat_ctx *st_ctx,
continue;
}
- if (st->backend->read_only) {
+ if (is_learn && st->backend->read_only) {
/* Read only backend, skip it */
g_ptr_array_index (task->stat_runtimes, i) = NULL;
continue;