diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-06-24 16:47:22 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-06-24 16:47:22 +0100 |
commit | 413e08bb4f8dd7e85e5bc86b15751d1789553fe3 (patch) | |
tree | 972c17f9d15d3dd2dd41736f5de2f30a006c9944 /src/rspamadm | |
parent | a7de52f40cc625c6f0e714f889dfddabc2968269 (diff) | |
download | rspamd-413e08bb4f8dd7e85e5bc86b15751d1789553fe3.tar.gz rspamd-413e08bb4f8dd7e85e5bc86b15751d1789553fe3.zip |
[Feature] Allow to skip some initialization phases to speed up rspamadm
Diffstat (limited to 'src/rspamadm')
-rw-r--r-- | src/rspamadm/configdump.c | 2 | ||||
-rw-r--r-- | src/rspamadm/configtest.c | 2 | ||||
-rw-r--r-- | src/rspamadm/rspamadm.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/rspamadm/configdump.c b/src/rspamadm/configdump.c index e7d51b442..1cc85676c 100644 --- a/src/rspamadm/configdump.c +++ b/src/rspamadm/configdump.c @@ -290,7 +290,7 @@ rspamadm_configdump (gint argc, gchar **argv) } if (ret) { - ret = rspamd_config_post_load (cfg, FALSE); + ret = rspamd_config_post_load (cfg, RSPAMD_CONFIG_INIT_SYMCACHE); } } diff --git a/src/rspamadm/configtest.c b/src/rspamadm/configtest.c index 7ba9af3fe..967bca2ba 100644 --- a/src/rspamadm/configtest.c +++ b/src/rspamadm/configtest.c @@ -150,7 +150,7 @@ rspamadm_configtest (gint argc, gchar **argv) } if (ret) { - ret = rspamd_config_post_load (cfg, FALSE); + ret = rspamd_config_post_load (cfg, RSPAMD_CONFIG_INIT_SYMCACHE); } if (!rspamd_symbols_cache_validate (rspamd_main->cfg->cache, diff --git a/src/rspamadm/rspamadm.c b/src/rspamadm/rspamadm.c index 523011a64..38d5e77eb 100644 --- a/src/rspamadm/rspamadm.c +++ b/src/rspamadm/rspamadm.c @@ -285,7 +285,7 @@ main (gint argc, gchar **argv, gchar **env) (void) rspamd_log_open (rspamd_main->logger); g_log_set_default_handler (rspamd_glib_log_function, rspamd_main->logger); g_set_printerr_handler (rspamd_glib_printerr_function); - rspamd_config_post_load (cfg, FALSE); + rspamd_config_post_load (cfg, RSPAMD_CONFIG_INIT_LIBS); /* Setup logger */ if (verbose) { |