aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstat/backends/redis.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-21 13:31:26 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-21 13:31:26 +0000
commitf3ac40859446c3f6829d52cfd0ae8066e5b5b2c8 (patch)
tree9eebef9b8f6dc2a2157cbd53170f6bd696ca6a01 /src/libstat/backends/redis.c
parent19fdaf580a3746442173f10da662629bdc1b62b9 (diff)
downloadrspamd-f3ac40859446c3f6829d52cfd0ae8066e5b5b2c8.tar.gz
rspamd-f3ac40859446c3f6829d52cfd0ae8066e5b5b2c8.zip
Use new rotation logic in the code
Diffstat (limited to 'src/libstat/backends/redis.c')
-rw-r--r--src/libstat/backends/redis.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/libstat/backends/redis.c b/src/libstat/backends/redis.c
index 66bad4471..b5194065a 100644
--- a/src/libstat/backends/redis.c
+++ b/src/libstat/backends/redis.c
@@ -398,10 +398,16 @@ rspamd_redis_runtime (struct rspamd_task *task,
}
if (learn) {
- up = rspamd_upstream_get (elt->write_servers, RSPAMD_UPSTREAM_MASTER_SLAVE);
+ up = rspamd_upstream_get (elt->write_servers,
+ RSPAMD_UPSTREAM_MASTER_SLAVE,
+ NULL,
+ 0);
}
else {
- up = rspamd_upstream_get (elt->read_servers, RSPAMD_UPSTREAM_ROUND_ROBIN);
+ up = rspamd_upstream_get (elt->read_servers,
+ RSPAMD_UPSTREAM_ROUND_ROBIN,
+ NULL,
+ 0);
}
if (up == NULL) {