From 39bce38e6dba6eabad7ceac77caf8fc7022eefb6 Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Tue, 16 Aug 2016 10:01:48 +0200 Subject: [PATCH] [Fix] rspamadm statconvert: use db/password for learn cache --- src/rspamadm/stat_convert.lua | 7 ++++--- 1 file 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 -- 2.39.5