From b7b6ad3e31b8467194e4d677b7415f7670af5c48 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 12 Jan 2021 12:18:38 +0000 Subject: [Minor] Preload maps after lua post init scripts --- src/libserver/cfg_utils.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/libserver/cfg_utils.c') diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c index 987123cbb..98e409d0f 100644 --- a/src/libserver/cfg_utils.c +++ b/src/libserver/cfg_utils.c @@ -930,14 +930,14 @@ rspamd_config_post_load (struct rspamd_config *cfg, ret = rspamd_symcache_validate (cfg->cache, cfg, FALSE) && ret; } - if (opts & RSPAMD_CONFIG_INIT_PRELOAD_MAPS) { - rspamd_map_preload (cfg); - } - if (opts & RSPAMD_CONFIG_INIT_POST_LOAD_LUA) { rspamd_lua_run_config_post_init (cfg->lua_state, cfg); } + if (opts & RSPAMD_CONFIG_INIT_PRELOAD_MAPS) { + rspamd_map_preload (cfg); + } + return ret; } -- cgit v1.2.3