mirror of
https://github.com/rspamd/rspamd.git
synced 2024-08-13 14:12:38 +02:00
[Minor] Allow load for locked ANNs
This commit is contained in:
parent
78b0d7d6d4
commit
4d69ef1b8d
@ -73,9 +73,6 @@ local redis_can_train_sha = nil
|
||||
-- key2 - local version
|
||||
-- returns nil or bulk string if new ANN can be loaded
|
||||
local redis_lua_script_maybe_load = [[
|
||||
local locked = redis.call('GET', KEYS[1] .. '_locked')
|
||||
if locked then return false end
|
||||
|
||||
local ver = 0
|
||||
local ret = redis.call('GET', KEYS[1] .. '_version')
|
||||
if ret then ver = tonumber(ret) end
|
||||
|
Loading…
Reference in New Issue
Block a user