Browse Source

[Fix] Fix key name to load ANN correctly

tags/1.4.0
Vsevolod Stakhov 7 years ago
parent
commit
b36155bb4b
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/plugins/lua/fann_redis.lua

+ 1
- 1
src/plugins/lua/fann_redis.lua View File

@@ -79,7 +79,7 @@ local redis_lua_script_maybe_load = [[
local ver = 0
local ret = redis.call('GET', KEYS[1] .. '_version')
if ret then ver = tonumber(ret) end
if ver > tonumber(KEYS[2]) then return redis.call('GET', KEYS[1] .. '_ann') end
if ver > tonumber(KEYS[2]) then return redis.call('GET', KEYS[1] .. '_data') end

return false
]]

Loading…
Cancel
Save