diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-07-18 11:00:12 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-07-18 11:00:12 +0100 |
commit | 4f30ed40b7a25c90ff7ad58d02ef5279cd6efcb7 (patch) | |
tree | 26a7aaaec852ef6a4972e7a78b69bbb1c7502d6b /src | |
parent | 03acc9d2ac617eb25e20dd0d9b4832b9d26037db (diff) | |
download | rspamd-4f30ed40b7a25c90ff7ad58d02ef5279cd6efcb7.tar.gz rspamd-4f30ed40b7a25c90ff7ad58d02ef5279cd6efcb7.zip |
[Fix] Set classifier version on learning
Diffstat (limited to 'src')
-rw-r--r-- | src/libstat/backends/redis_backend.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libstat/backends/redis_backend.c b/src/libstat/backends/redis_backend.c index 0b421f2a5..2a14df469 100644 --- a/src/libstat/backends/redis_backend.c +++ b/src/libstat/backends/redis_backend.c @@ -1677,6 +1677,9 @@ rspamd_redis_learn_tokens (struct rspamd_task *task, GPtrArray *tokens, else { learned_key = "learns_ham"; } + + redisAsyncCommand (rt->redis, NULL, NULL, "HSET %s version 2", + rt->redis_object_expanded); } addr = rspamd_upstream_addr (up); |