aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstat/backends
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-01-08 16:08:07 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-01-08 16:08:07 +0000
commit4aec836b76851fdedcc5af034b1854de321f76e3 (patch)
tree4190a0c4fd85d1ddcbc2372c82303bc96b83d297 /src/libstat/backends
parent6ee6b7a2642f6ef7d8805ce6a1299196fbe683e3 (diff)
downloadrspamd-4aec836b76851fdedcc5af034b1854de321f76e3.tar.gz
rspamd-4aec836b76851fdedcc5af034b1854de321f76e3.zip
Implement the case of incrementing backends for bayes
Diffstat (limited to 'src/libstat/backends')
-rw-r--r--src/libstat/backends/redis_backend.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstat/backends/redis_backend.c b/src/libstat/backends/redis_backend.c
index a83ab3081..240584a51 100644
--- a/src/libstat/backends/redis_backend.c
+++ b/src/libstat/backends/redis_backend.c
@@ -609,6 +609,7 @@ rspamd_redis_init (struct rspamd_stat_ctx *ctx,
backend->timeout = REDIS_DEFAULT_TIMEOUT;
}
+ stf->clcf->flags |= RSPAMD_FLAG_CLASSIFIER_INCREMENTING_BACKEND;
return (gpointer)backend;
}