summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-07-17 13:35:48 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-07-17 13:35:48 +0100
commitb63019b9702cd7c4b843a7f52b64d41b8d1b539e (patch)
tree17f5213cc6a918280da9c526f7fd2a5515eefdc3 /src
parent232f06de6252554901159a49864fac6ebd9dc8a8 (diff)
downloadrspamd-b63019b9702cd7c4b843a7f52b64d41b8d1b539e.tar.gz
rspamd-b63019b9702cd7c4b843a7f52b64d41b8d1b539e.zip
[Minor] Multimap: Fix redis query
Diffstat (limited to 'src')
-rw-r--r--src/plugins/lua/multimap.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/lua/multimap.lua b/src/plugins/lua/multimap.lua
index da8ad81b9..b87636bd0 100644
--- a/src/plugins/lua/multimap.lua
+++ b/src/plugins/lua/multimap.lua
@@ -388,7 +388,7 @@ local function multimap_query_redis(key, task, value, callback)
cmd = 'HMGET'
end
- local srch = {cmd, key}
+ local srch = {key}
-- Insert all ips for some mask :(
if type(value) == 'userdata' and value.class == 'rspamd{ip}' then
@@ -409,6 +409,8 @@ local function multimap_query_redis(key, task, value, callback)
end
local function redis_map_cb(err, data)
+ lua_util.debugm(N, task, 'got reply from Redis when trying to get key %s: err=%s, data=%s',
+ key, err, data)
if not err and type(data) ~= 'userdata' then
callback(data)
end