]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] rspamadm statconvert: use db/password for learn cache
authorAndrew Lewis <nerf@judo.za.org>
Tue, 16 Aug 2016 08:01:48 +0000 (10:01 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Tue, 16 Aug 2016 08:01:48 +0000 (10:01 +0200)
src/rspamadm/stat_convert.lua

index c0cb4e0eb4a5a5d55b0062e05fb3febac1043b9b..eb924b4bfcab850336cdd89898311719f3ef5b62 100644 (file)
@@ -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