commit f28ae32: [Minor] Move settings symbol registration earlier
Vsevolod Stakhov
vsevolod at highsecure.ru
Tue Aug 20 16:42:05 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-08-20 16:26:05 +0100
URL: https://github.com/rspamd/rspamd/commit/f28ae3248803cd3f9cddc69bdb5995d997bd128e
[Minor] Move settings symbol registration earlier
---
src/plugins/lua/settings.lua | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/plugins/lua/settings.lua b/src/plugins/lua/settings.lua
index 757fce95f..5fe2353d4 100644
--- a/src/plugins/lua/settings.lua
+++ b/src/plugins/lua/settings.lua
@@ -1106,6 +1106,14 @@ if redis_section then
end, redis_key_handlers)
end
+module_sym_id = rspamd_config:register_symbol({
+ name = 'SETTINGS_CHECK',
+ type = 'prefilter',
+ callback = check_settings,
+ priority = 10,
+ flags = 'empty,nostat,explicit_disable,ignore_passthrough',
+})
+
local set_section = rspamd_config:get_all_opt("settings")
if set_section and set_section[1] and type(set_section[1]) == "string" then
@@ -1118,14 +1126,6 @@ elseif set_section and type(set_section) == "table" then
process_settings_table(set_section, true, settings_map_pool)
end
-module_sym_id = rspamd_config:register_symbol({
- name = 'SETTINGS_CHECK',
- type = 'prefilter',
- callback = check_settings,
- priority = 10,
- flags = 'empty,nostat,explicit_disable,ignore_passthrough',
-})
-
rspamd_config:add_config_unload(function()
if settings_map_pool then
settings_map_pool:destroy()
More information about the Commits
mailing list