diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-12-15 09:29:07 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-12-15 09:29:07 +0000 |
commit | 70773eef7084d51619c0ccc497f701ba4d8f0665 (patch) | |
tree | 4f63bd6d2eb51652db655be27f8a9b7290875a78 | |
parent | 887b84d1fa6235d4582d7468a662873e5edefe91 (diff) | |
download | rspamd-70773eef7084d51619c0ccc497f701ba4d8f0665.tar.gz rspamd-70773eef7084d51619c0ccc497f701ba4d8f0665.zip |
[CritFix] Allow to reupload scripts when Redis is restarted
Issue: #5256
-rw-r--r-- | lualib/lua_redis.lua | 2 |
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) |