From: Vsevolod Stakhov Date: Tue, 15 Nov 2016 16:28:26 +0000 (+0000) Subject: [Fix] Fix key name to load ANN correctly X-Git-Tag: 1.4.0~53 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b36155bb4b3b911b6d53529dc415d13cff376d2d;p=thirdparty%2Frspamd.git [Fix] Fix key name to load ANN correctly --- diff --git a/src/plugins/lua/fann_redis.lua b/src/plugins/lua/fann_redis.lua index ab4d74afad..3652f6724d 100644 --- a/src/plugins/lua/fann_redis.lua +++ b/src/plugins/lua/fann_redis.lua @@ -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 ]]