diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-06-26 16:36:36 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-06-26 16:37:06 +0100 |
commit | 3efd7b744da68245805f0da64661ec5cf7cd5483 (patch) | |
tree | 7f9b29571693b6218807fa7db3302a8986ad9ab7 /src/libserver/cfg_file.h | |
parent | f16ae1bbd43346b8fb2d79b0fd476c771b32a7cc (diff) | |
download | rspamd-3efd7b744da68245805f0da64661ec5cf7cd5483.tar.gz rspamd-3efd7b744da68245805f0da64661ec5cf7cd5483.zip |
[Feature] Preload file and static maps in main process
Diffstat (limited to 'src/libserver/cfg_file.h')
-rw-r--r-- | src/libserver/cfg_file.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/libserver/cfg_file.h b/src/libserver/cfg_file.h index 777340e16..a74169b31 100644 --- a/src/libserver/cfg_file.h +++ b/src/libserver/cfg_file.h @@ -487,10 +487,15 @@ enum rspamd_post_load_options { RSPAMD_CONFIG_INIT_LIBS = 1 << 1, RSPAMD_CONFIG_INIT_SYMCACHE = 1 << 2, RSPAMD_CONFIG_INIT_VALIDATE = 1 << 3, - RSPAMD_CONFIG_INIT_NO_TLD = 1 << 4 + RSPAMD_CONFIG_INIT_NO_TLD = 1 << 4, + RSPAMD_CONFIG_INIT_PRELOAD_MAPS = 1 << 5, }; -#define RSPAMD_CONFIG_LOAD_ALL (RSPAMD_CONFIG_INIT_URL|RSPAMD_CONFIG_INIT_LIBS|RSPAMD_CONFIG_INIT_SYMCACHE|RSPAMD_CONFIG_INIT_VALIDATE) +#define RSPAMD_CONFIG_LOAD_ALL (RSPAMD_CONFIG_INIT_URL| \ + RSPAMD_CONFIG_INIT_LIBS| \ + RSPAMD_CONFIG_INIT_SYMCACHE| \ + RSPAMD_CONFIG_INIT_VALIDATE| \ + RSPAMD_CONFIG_INIT_PRELOAD_MAPS) /** * Do post load actions for config |