commit 390c2f4: [Fix] Set proper element when reading data from Sentinel
Vsevolod Stakhov
vsevolod at highsecure.ru
Thu Dec 27 18:28:03 UTC 2018
Author: Vsevolod Stakhov
Date: 2018-12-04 16:20:39 +0000
URL: https://github.com/rspamd/rspamd/commit/390c2f4e28ce8a09b8e1dd01a4c2ce86c60db72f
[Fix] Set proper element when reading data from Sentinel
Issue: #2663
Closes: #2663
---
lualib/lua_redis.lua | 6 ++++--
1 file 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"
More information about the Commits
mailing list