diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-11-29 16:57:53 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-11-29 16:58:07 +0000 |
commit | 4d69ef1b8d6dc9d71c687dac9fbc00a21197abe0 (patch) | |
tree | 21443bdf3928d52d154b095b8a379c3f010b1582 /src | |
parent | 78b0d7d6d4a0fae8c1672348da26842b0ab3976b (diff) | |
download | rspamd-4d69ef1b8d6dc9d71c687dac9fbc00a21197abe0.tar.gz rspamd-4d69ef1b8d6dc9d71c687dac9fbc00a21197abe0.zip |
[Minor] Allow load for locked ANNs
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/lua/fann_redis.lua | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/plugins/lua/fann_redis.lua b/src/plugins/lua/fann_redis.lua index d75d1ec1c..5b67a0b58 100644 --- a/src/plugins/lua/fann_redis.lua +++ b/src/plugins/lua/fann_redis.lua @@ -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 |