Browse Source

[Fix] Sort data received from Sentinel to avoid constant replacing

Issue: #2664
Closes: #2664
tags/1.9.0
Vsevolod Stakhov 5 years ago
parent
commit
b99cd00a12
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      lualib/lua_redis.lua

+ 3
- 0
lualib/lua_redis.lua View File

@@ -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, ',')


Loading…
Cancel
Save