]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Set classifier version on learning
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 18 Jul 2018 10:00:12 +0000 (11:00 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 18 Jul 2018 10:00:12 +0000 (11:00 +0100)
src/libstat/backends/redis_backend.c

index 0b421f2a58345eadecc239b1cb4c39f84802606d..2a14df469861f56b0f674a0237c864c272771979 100644 (file)
@@ -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);