aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/cfg_utils.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-01-12 12:18:38 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-01-12 12:18:38 +0000
commitb7b6ad3e31b8467194e4d677b7415f7670af5c48 (patch)
tree1e92c9c68a94ac08440f3b7c30eb65266c045154 /src/libserver/cfg_utils.c
parentdd026588fc294a86bea3922e65836dbe1a7cacd6 (diff)
downloadrspamd-b7b6ad3e31b8467194e4d677b7415f7670af5c48.tar.gz
rspamd-b7b6ad3e31b8467194e4d677b7415f7670af5c48.zip
[Minor] Preload maps after lua post init scripts
Diffstat (limited to 'src/libserver/cfg_utils.c')
-rw-r--r--src/libserver/cfg_utils.c8
1 files changed, 4 insertions, 4 deletions
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;
}