diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-01-10 23:39:46 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-01-10 23:39:46 +0000 |
commit | dd1af5b84e7bb401dbe9af004da9f4b49ed97b23 (patch) | |
tree | 289ec424f7e0add040971ccee52611bf1fb65697 /src/libstat/learn_cache | |
parent | 8bcc03ac88d6f99058bd1a6660f30cb535cf1515 (diff) | |
download | rspamd-dd1af5b84e7bb401dbe9af004da9f4b49ed97b23.tar.gz rspamd-dd1af5b84e7bb401dbe9af004da9f4b49ed97b23.zip |
Fix processing of caches
Diffstat (limited to 'src/libstat/learn_cache')
-rw-r--r-- | src/libstat/learn_cache/sqlite3_cache.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/libstat/learn_cache/sqlite3_cache.c b/src/libstat/learn_cache/sqlite3_cache.c index 6e040595d..4d97e3084 100644 --- a/src/libstat/learn_cache/sqlite3_cache.c +++ b/src/libstat/learn_cache/sqlite3_cache.c @@ -179,7 +179,9 @@ rspamd_stat_cache_sqlite3_runtime (struct rspamd_task *task, gint rspamd_stat_cache_sqlite3_check (struct rspamd_task *task, - gboolean is_spam, gpointer c) + gboolean is_spam, + gpointer runtime, + gpointer c) { struct rspamd_stat_sqlite3_ctx *ctx = (struct rspamd_stat_sqlite3_ctx *)c; struct mime_text_part *part; @@ -240,7 +242,9 @@ rspamd_stat_cache_sqlite3_check (struct rspamd_task *task, gint rspamd_stat_cache_sqlite3_learn (struct rspamd_task *task, - gboolean is_spam, gpointer c) + gboolean is_spam, + gpointer runtime, + gpointer c) { struct rspamd_stat_sqlite3_ctx *ctx = (struct rspamd_stat_sqlite3_ctx *)c; gboolean unlearn = !!(task->flags & RSPAMD_TASK_FLAG_UNLEARN); |