]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix key name to load ANN correctly
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 15 Nov 2016 16:28:26 +0000 (16:28 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 15 Nov 2016 16:28:26 +0000 (16:28 +0000)
src/plugins/lua/fann_redis.lua

index ab4d74afade2e5d28dca11b8a8cf1418c45b643a..3652f6724d94e91d2263c4a01b060facceef8e27 100644 (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
 ]]