From: Vsevolod Stakhov Date: Tue, 12 Jan 2021 12:18:38 +0000 (+0000) Subject: [Minor] Preload maps after lua post init scripts X-Git-Tag: 3.0~774 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b7b6ad3e31b8467194e4d677b7415f7670af5c48;p=thirdparty%2Frspamd.git [Minor] Preload maps after lua post init scripts --- diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c index 987123cbb3..98e409d0ff 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; }