commit f985d29: [Minor] Some more reload fixes
Vsevolod Stakhov
vsevolod at highsecure.ru
Wed Aug 7 18:56:10 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-08-07 19:55:13 +0100
URL: https://github.com/rspamd/rspamd/commit/f985d29e6ab396a853474fca0cba086533057ff1 (HEAD -> master)
[Minor] Some more reload fixes
---
src/rspamd.c | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/src/rspamd.c b/src/rspamd.c
index 2dc50c5d5..458d3d083 100644
--- a/src/rspamd.c
+++ b/src/rspamd.c
@@ -308,6 +308,8 @@ reread_config (struct rspamd_main *rspamd_main)
else {
msg_info_main ("replacing config");
REF_RELEASE (old_cfg);
+ rspamd_main->cfg->rspamd_user = rspamd_user;
+ rspamd_main->cfg->rspamd_group = rspamd_group;
/* Here, we can do post actions with the existing config */
/*
* As some rules are defined in lua, we need to process them, then init
@@ -317,12 +319,9 @@ reread_config (struct rspamd_main *rspamd_main)
rspamd_init_filters (tmp_cfg, TRUE);
/* Do post-load actions */
- rspamd_config_post_load (tmp_cfg, load_opts);
+ rspamd_config_post_load (tmp_cfg,
+ load_opts|RSPAMD_CONFIG_INIT_POST_LOAD_LUA|RSPAMD_CONFIG_INIT_PRELOAD_MAPS);
msg_info_main ("config has been reread successfully");
- rspamd_map_preload (rspamd_main->cfg);
-
- rspamd_main->cfg->rspamd_user = rspamd_user;
- rspamd_main->cfg->rspamd_group = rspamd_group;
}
}
More information about the Commits
mailing list