From: Andrew Lewis Date: Tue, 16 Aug 2016 08:01:48 +0000 (+0200) Subject: [Fix] rspamadm statconvert: use db/password for learn cache X-Git-Tag: 1.3.4~45^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=39bce38e6dba6eabad7ceac77caf8fc7022eefb6;p=rspamd.git [Fix] rspamadm statconvert: use db/password for learn cache --- 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