]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Preload maps after lua post init scripts
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 12 Jan 2021 12:18:38 +0000 (12:18 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 12 Jan 2021 12:18:38 +0000 (12:18 +0000)
src/libserver/cfg_utils.c

index 987123cbb3f42e92ef17ba713c60dc4c16496fb8..98e409d0ff8c8a7112d8bbe6350d8acb77e3fd7c 100644 (file)
@@ -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;
 }