bk->enable_languages = FALSE;
}
+ if (bk->enable_languages) {
+ msg_info_config ("enable per language statistics for %s",
+ stf->symbol);
+ }
+
+ if (bk->enable_users) {
+ msg_info_config ("enable per users statistics for %s",
+ stf->symbol);
+ }
+
ctx->statfiles ++;
curst = curst->next;
bk->in_transaction = FALSE;
}
+ rt->lang_id = -1;
+ rt->user_id = -1;
+
return;
}
}
if (rt->lang_id == -1) {
- rt->lang_id = rspamd_sqlite3_get_language (bk, task, FALSE);
+ rt->lang_id = rspamd_sqlite3_get_language (bk, task, TRUE);
}
iv = res->value;
while (cur) {
cl_run = (struct rspamd_classifier_runtime *)cur->data;
+ curst = cl_run->st_runtime;
+
+ /* Needed to finalize pre-process stage */
+ while (curst) {
+ st_run = curst->data;
+ cl_run->backend->finalize_process (task,
+ st_run->backend_runtime,
+ cl_run->backend->ctx);
+ curst = g_list_next (curst);
+ }
+
if (cl_run->cl && !cl_run->skipped) {
cl_ctx = cl_run->cl->init_func (task->task_pool, cl_run->clcf);