aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2024-12-15 09:29:07 +0000
committerVsevolod Stakhov <vsevolod@rspamd.com>2024-12-15 09:29:07 +0000
commit70773eef7084d51619c0ccc497f701ba4d8f0665 (patch)
tree4f63bd6d2eb51652db655be27f8a9b7290875a78
parent887b84d1fa6235d4582d7468a662873e5edefe91 (diff)
downloadrspamd-70773eef7084d51619c0ccc497f701ba4d8f0665.tar.gz
rspamd-70773eef7084d51619c0ccc497f701ba4d8f0665.zip
[CritFix] Allow to reupload scripts when Redis is restarted
Issue: #5256
-rw-r--r--lualib/lua_redis.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/lualib/lua_redis.lua b/lualib/lua_redis.lua
index 7b85f44c4..003fee957 100644
--- a/lualib/lua_redis.lua
+++ b/lualib/lua_redis.lua
@@ -1140,6 +1140,8 @@ local function script_set_loaded(script)
script.loaded = true
end
+ script.servers_ready = nil -- Allow further reload
+
local wait_table = {}
for _, s in ipairs(script.waitq) do
table.insert(wait_table, s)