diff options
Diffstat (limited to 'src/libstat/stat_process.c')
-rw-r--r-- | src/libstat/stat_process.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libstat/stat_process.c b/src/libstat/stat_process.c index 2ebc8f599..35c9d1215 100644 --- a/src/libstat/stat_process.c +++ b/src/libstat/stat_process.c @@ -314,6 +314,12 @@ rspamd_stat_preprocess (struct rspamd_stat_ctx *st_ctx, continue; } + if (st->backend->read_only) { + /* Read only backend, skip it */ + g_ptr_array_index (task->stat_runtimes, i) = NULL; + continue; + } + if (!rspamd_symcache_is_symbol_enabled (task, task->cfg->cache, st->stcf->symbol)) { g_ptr_array_index (task->stat_runtimes, i) = NULL; |