commit 0659beb: [Minor] Bayes actually uses sets, not lists
Vsevolod Stakhov
vsevolod at highsecure.ru
Fri Apr 30 16:56:07 UTC 2021
Author: Vsevolod Stakhov
Date: 2021-04-30 17:51:29 +0100
URL: https://github.com/rspamd/rspamd/commit/0659beb4eb6a475e488bcb01c7a2488ff34c0b7b
[Minor] Bayes actually uses sets, not lists
---
lualib/rspamadm/statistics_dump.lua | 4 ++--
1 file 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
More information about the Commits
mailing list