]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Rspamadm: Init symcache in rspamadm clickhouse
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 6 Apr 2021 15:06:10 +0000 (16:06 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 6 Apr 2021 15:06:10 +0000 (16:06 +0100)
lualib/rspamadm/clickhouse.lua
src/lua/lua_config.c

index 235b7632ac47c3a8cabf161a1b640fd7c2acd535..e09f866e8e245e10eccfc6c6406d9ca19fb90b91 100644 (file)
@@ -148,6 +148,8 @@ local function load_config(config_file)
     rspamd_logger.errx('cannot init modules when parsing %s', config_file)
     os.exit(1)
   end
+
+  rspamd_config:init_subsystem('symcache')
 end
 
 local function days_list(days)
index f42ca268ede64efa1226957e1a10f035c410686b..2631f1cecdd77e5b76e79c2ceda3979b62319437 100644 (file)
@@ -4425,6 +4425,9 @@ lua_config_init_subsystem (lua_State *L)
                                        return luaL_error (L, "no event base specified");
                                }
                        }
+                       else if (strcmp (parts[i], "symcache") == 0) {
+                               rspamd_symcache_init (cfg->cache);
+                       }
                        else {
                                g_strfreev (parts);