Browse Source

[Minor] Preload maps after lua post init scripts

tags/3.0
Vsevolod Stakhov 3 years ago
parent
commit
b7b6ad3e31
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      src/libserver/cfg_utils.c

+ 4
- 4
src/libserver/cfg_utils.c View 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;
}


Loading…
Cancel
Save