aboutsummaryrefslogtreecommitdiffstats
path: root/src/rspamadm/stat_convert.lua
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2016-08-16 10:01:48 +0200
committerAndrew Lewis <nerf@judo.za.org>2016-08-16 10:01:48 +0200
commit39bce38e6dba6eabad7ceac77caf8fc7022eefb6 (patch)
tree9eadfdb0ce7811e1ddf5739277e87229c8136fd7 /src/rspamadm/stat_convert.lua
parent98144000841b33d84e571f04fd56d385e8ad0a98 (diff)
downloadrspamd-39bce38e6dba6eabad7ceac77caf8fc7022eefb6.tar.gz
rspamd-39bce38e6dba6eabad7ceac77caf8fc7022eefb6.zip
[Fix] rspamadm statconvert: use db/password for learn cache
Diffstat (limited to 'src/rspamadm/stat_convert.lua')
-rw-r--r--src/rspamadm/stat_convert.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/rspamadm/stat_convert.lua b/src/rspamadm/stat_convert.lua
index c0cb4e0eb..eb924b4bf 100644
--- a/src/rspamadm/stat_convert.lua
+++ b/src/rspamadm/stat_convert.lua
@@ -113,9 +113,10 @@ return function (args, res)
end
if res['cache_db'] then
- if not convert_learned(res['cache_db'], res['redis_host']) then
- print('Cannot convert learned cache to redis')
- return
+ if not convert_learned(res['cache_db'], res['redis_host'],
+ redis_password, redis_db) then
+ print('Cannot convert learned cache to redis')
+ return
end
end