commit b7b6ad3: [Minor] Preload maps after lua post init scripts
Vsevolod Stakhov
vsevolod at highsecure.ru
Tue Jan 12 14:00:06 UTC 2021
Author: Vsevolod Stakhov
Date: 2021-01-12 12:18:38 +0000
URL: https://github.com/rspamd/rspamd/commit/b7b6ad3e31b8467194e4d677b7415f7670af5c48
[Minor] Preload maps after lua post init scripts
---
src/libserver/cfg_utils.c | 8 ++++----
1 file 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;
}
More information about the Commits
mailing list