diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-03-22 17:20:24 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-03-22 17:20:24 +0300 |
commit | ee9632d269fa365a66cff0da13acb28fd8908bef (patch) | |
tree | 5d49786dcfa4e1c1af7c4bb99e11ad85fad934b1 /src/main.c | |
parent | 02fdad311299333c513d9e63a1371688c289a593 (diff) | |
download | rspamd-ee9632d269fa365a66cff0da13acb28fd8908bef.tar.gz rspamd-ee9632d269fa365a66cff0da13acb28fd8908bef.zip |
Do not re-create symbols cache while doing dump of cache.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c index 14a4988ee..43c0a07e6 100644 --- a/src/main.c +++ b/src/main.c @@ -693,7 +693,7 @@ static void init_cfg_cache (struct config_file *cfg) { - if (!init_symbols_cache (cfg->cfg_pool, cfg->cache, cfg, cfg->cache_filename)) { + if (!init_symbols_cache (cfg->cfg_pool, cfg->cache, cfg, cfg->cache_filename, FALSE)) { exit (EXIT_FAILURE); } } @@ -705,7 +705,7 @@ print_symbols_cache (struct config_file *cfg) struct cache_item *item; gint i; - if (!init_symbols_cache (cfg->cfg_pool, cfg->cache, cfg, cfg->cache_filename)) { + if (!init_symbols_cache (cfg->cfg_pool, cfg->cache, cfg, cfg->cache_filename, TRUE)) { exit (EXIT_FAILURE); } if (cfg->cache) { @@ -869,7 +869,7 @@ main (gint argc, gchar **argv, gchar **env) /* Insert classifiers symbols */ (void)insert_classifier_symbols (rspamd->cfg); - if (! validate_cache (rspamd->cfg->cache, rspamd->cfg, TRUE)) { + if (! validate_cache (rspamd->cfg->cache, rspamd->cfg, FALSE)) { res = FALSE; } if (dump_vars) { |