diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-07-27 17:17:15 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-07-27 17:17:15 +0400 |
commit | 6d12fe03df4b366baa3ab7e5046a8a74bb6afecb (patch) | |
tree | 7e2d3d220762a2d700f622564bba76c27600ba8d | |
parent | 89b6c2f9260b0a3cea1f80634fbfbcfa71ac71a3 (diff) | |
download | rspamd-6d12fe03df4b366baa3ab7e5046a8a74bb6afecb.tar.gz rspamd-6d12fe03df4b366baa3ab7e5046a8a74bb6afecb.zip |
* Pre-init symbols cache when rereading config
-rw-r--r-- | src/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c index cbbfea268..4eb4d2c55 100644 --- a/src/main.c +++ b/src/main.c @@ -280,6 +280,10 @@ reread_config (struct rspamd_main *rspamd) rspamd->cfg->log_level = G_LOG_LEVEL_DEBUG; } config_logger (rspamd, FALSE); + /* Pre-init of cache */ + rspamd->cfg->cache = g_new0 (struct symbols_cache, 1); + rspamd->cfg->cache->static_pool = memory_pool_new (memory_pool_get_size ()); + rspamd->cfg->cache->cfg = rspamd->cfg; /* Perform modules configuring */ l = g_list_first (rspamd->cfg->filters); |