From: Vsevolod Stakhov Date: Wed, 18 Jul 2018 10:00:12 +0000 (+0100) Subject: [Fix] Set classifier version on learning X-Git-Tag: 1.7.9~102 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4f30ed40b7a25c90ff7ad58d02ef5279cd6efcb7;p=rspamd.git [Fix] Set classifier version on learning --- 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);