diff options
author | Andrew Lewis <nerf@judo.za.org> | 2016-08-16 10:01:48 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2016-08-16 10:01:48 +0200 |
commit | 39bce38e6dba6eabad7ceac77caf8fc7022eefb6 (patch) | |
tree | 9eadfdb0ce7811e1ddf5739277e87229c8136fd7 /src/rspamadm/stat_convert.lua | |
parent | 98144000841b33d84e571f04fd56d385e8ad0a98 (diff) | |
download | rspamd-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.lua | 7 |
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 |