From f61ced40295b217acc766fc958bc1fe621f947a8 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 7 Aug 2023 15:10:32 +0100 Subject: [PATCH] [Minor] Fix usage --- lualib/lua_redis.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lualib/lua_redis.lua b/lualib/lua_redis.lua index 6d2a9e4f1..b03160bb0 100644 --- a/lualib/lua_redis.lua +++ b/lualib/lua_redis.lua @@ -1140,10 +1140,10 @@ local function prepare_redis_call(script) local options = {} if script.redis_params.read_servers then - lutil.table_merge(servers, script.redis_params.read_servers:all_upstreams()) + servers = lutil.table_merge(servers, script.redis_params.read_servers:all_upstreams()) end if script.redis_params.write_servers then - lutil.table_merge(servers, script.redis_params.write_servers:all_upstreams()) + servers = lutil.table_merge(servers, script.redis_params.write_servers:all_upstreams()) end -- Call load script on each server, set loaded flag -- 2.39.5