commit b99cd00: [Fix] Sort data received from Sentinel to avoid constant replacing
Vsevolod Stakhov
vsevolod at highsecure.ru
Thu Dec 27 18:28:03 UTC 2018
Author: Vsevolod Stakhov
Date: 2018-12-04 16:23:18 +0000
URL: https://github.com/rspamd/rspamd/commit/b99cd00a121e1f80077144678207f21c82690544
[Fix] Sort data received from Sentinel to avoid constant replacing
Issue: #2664
Closes: #2664
---
lualib/lua_redis.lua | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lualib/lua_redis.lua b/lualib/lua_redis.lua
index b246899db..0c6520e5c 100644
--- a/lualib/lua_redis.lua
+++ b/lualib/lua_redis.lua
@@ -143,6 +143,9 @@ local function redis_query_sentinel(ev_base, params, initialised)
end
end
+ table.sort(read_servers_tbl)
+ table.sort(write_servers_tbl)
+
local read_servers_str = table.concat(read_servers_tbl, ',')
local write_servers_str = table.concat(write_servers_tbl, ',')
More information about the Commits
mailing list