aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstat/stat_process.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2022-06-18 14:35:55 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2022-06-18 14:35:55 +0100
commit655048871c3bd6ee0b8e957a2b6f127b71149bec (patch)
tree6230fb73d3e5d2c35f1156cd321dc7e1689c5f4f /src/libstat/stat_process.c
parent6d1ccd4aeec5509c9be5d17da376aa3cbe282969 (diff)
downloadrspamd-655048871c3bd6ee0b8e957a2b6f127b71149bec.tar.gz
rspamd-655048871c3bd6ee0b8e957a2b6f127b71149bec.zip
[Minor] Pass statfile id when requesting for the backend runtime
Diffstat (limited to 'src/libstat/stat_process.c')
-rw-r--r--src/libstat/stat_process.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstat/stat_process.c b/src/libstat/stat_process.c
index 6683990c0..9e2875297 100644
--- a/src/libstat/stat_process.c
+++ b/src/libstat/stat_process.c
@@ -328,7 +328,7 @@ rspamd_stat_preprocess (struct rspamd_stat_ctx *st_ctx,
continue;
}
- bk_run = st->backend->runtime (task, st->stcf, is_learn, st->bkcf);
+ bk_run = st->backend->runtime (task, st->stcf, is_learn, st->bkcf, i);
if (bk_run == NULL) {
msg_err_task ("cannot init backend %s for statfile %s",
@@ -1204,7 +1204,7 @@ rspamd_stat_statistics (struct rspamd_task *task,
id = g_array_index (cl->statfiles_ids, gint, j);
st = g_ptr_array_index (st_ctx->statfiles, id);
backend_runtime = st->backend->runtime (task, st->stcf, FALSE,
- st->bkcf);
+ st->bkcf, id);
elt = st->backend->get_stat (backend_runtime, st->bkcf);
if (elt && ucl_object_type (elt) == UCL_OBJECT) {