aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/lua_redis.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-12-04 16:20:39 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-12-04 16:20:39 +0000
commit390c2f4e28ce8a09b8e1dd01a4c2ce86c60db72f (patch)
tree3ba08e118cc2eb918c6ef49589a0357cedc2b801 /lualib/lua_redis.lua
parent65766a863913d96e3a656e1cc33ea434c5a3842f (diff)
downloadrspamd-390c2f4e28ce8a09b8e1dd01a4c2ce86c60db72f.tar.gz
rspamd-390c2f4e28ce8a09b8e1dd01a4c2ce86c60db72f.zip
[Fix] Set proper element when reading data from Sentinel
Issue: #2663 Closes: #2663
Diffstat (limited to 'lualib/lua_redis.lua')
-rw-r--r--lualib/lua_redis.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/lualib/lua_redis.lua b/lualib/lua_redis.lua
index 6f0a437b7..b246899db 100644
--- a/lualib/lua_redis.lua
+++ b/lualib/lua_redis.lua
@@ -144,10 +144,12 @@ local function redis_query_sentinel(ev_base, params, initialised)
end
local read_servers_str = table.concat(read_servers_tbl, ',')
- local write_servers_str = table.concat(read_servers_tbl, ',')
+ local write_servers_str = table.concat(write_servers_tbl, ',')
lutil.debugm(N, rspamd_config,
- 'new servers list: %s read; %s write', read_servers_str, write_servers_str)
+ 'new servers list: %s read; %s write',
+ read_servers_str,
+ write_servers_str)
if read_servers_str ~= params.read_servers_str then
local upstream_list = require "rspamd_upstream_list"