aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-04-30 17:51:29 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-04-30 17:51:29 +0100
commit0659beb4eb6a475e488bcb01c7a2488ff34c0b7b (patch)
tree2b359eeaacc07a9d0ed2e485b2d9abaf36401809
parent53abe0d99c7e8eb5d33faca92c6f1e7c5084f233 (diff)
downloadrspamd-0659beb4eb6a475e488bcb01c7a2488ff34c0b7b.tar.gz
rspamd-0659beb4eb6a475e488bcb01c7a2488ff34c0b7b.zip
[Minor] Bayes actually uses sets, not lists
-rw-r--r--lualib/rspamadm/statistics_dump.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lualib/rspamadm/statistics_dump.lua b/lualib/rspamadm/statistics_dump.lua
index 5caa63666..bbd4e2410 100644
--- a/lualib/rspamadm/statistics_dump.lua
+++ b/lualib/rspamadm/statistics_dump.lua
@@ -340,9 +340,9 @@ local function obj_to_redis_arguments(obj, opts, cmd_pipe)
end
end
else
- -- Numeric table of elements (e.g. _keys)
+ -- Numeric table of elements (e.g. _keys) - it is actually a set in Redis
for _,elt in ipairs(value) do
- table.insert(cmd_pipe, {'LPUSHX', {key, elt}})
+ table.insert(cmd_pipe, {'SADD', {key, elt}})
end
end
end