commit 43ab98a: [Minor] Rspamadm: Init symcache in rspamadm clickhouse

Vsevolod Stakhov vsevolod at highsecure.ru
Tue Apr 6 15:07:04 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-04-06 16:06:10 +0100
URL: https://github.com/rspamd/rspamd/commit/43ab98a44810c5a82c426e8bf433d1611fabee2f (HEAD -> master)

[Minor] Rspamadm: Init symcache in rspamadm clickhouse

---
 lualib/rspamadm/clickhouse.lua | 2 ++
 src/lua/lua_config.c           | 3 +++
 2 files changed, 5 insertions(+)

diff --git a/lualib/rspamadm/clickhouse.lua b/lualib/rspamadm/clickhouse.lua
index 235b7632a..e09f866e8 100644
--- a/lualib/rspamadm/clickhouse.lua
+++ b/lualib/rspamadm/clickhouse.lua
@@ -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)
diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c
index f42ca268e..2631f1cec 100644
--- a/src/lua/lua_config.c
+++ b/src/lua/lua_config.c
@@ -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);
 


More information about the Commits mailing list