summaryrefslogtreecommitdiffstats
path: root/lualib/lua_redis.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lualib/lua_redis.lua')
-rw-r--r--lualib/lua_redis.lua3
1 files changed, 3 insertions, 0 deletions
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, ',')