diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-03-21 11:17:58 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-03-21 11:17:58 +0000 |
commit | 1771fb92d2d493ff003d82b07a394aaafe45580b (patch) | |
tree | 897983975932261f0ca25c5ebe76d3670f427aca /src | |
parent | 552e94aa29805f8307f6216170eb6a202db6e12f (diff) | |
download | rspamd-1771fb92d2d493ff003d82b07a394aaafe45580b.tar.gz rspamd-1771fb92d2d493ff003d82b07a394aaafe45580b.zip |
Fix initialization order.
Diffstat (limited to 'src')
-rw-r--r-- | src/fuzzy_storage.c | 14 | ||||
m--------- | src/rdns | 0 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c index 831d60c44..6a3e12a04 100644 --- a/src/fuzzy_storage.c +++ b/src/fuzzy_storage.c @@ -1016,13 +1016,6 @@ start_fuzzy (struct rspamd_worker *worker) event_base_set (ctx->ev_base, &sev); signal_add (&sev, NULL); - /* Init bloom filter */ - bf = rspamd_bloom_create (2000000L, RSPAMD_DEFAULT_BLOOM_HASHES); - /* Try to read hashes from file */ - if (!read_hashes_file (worker)) { - msg_err ("cannot read hashes file, it can be created after save procedure"); - } - if (ctx->strict_hash) { static_hash = g_hash_table_new_full (rspamd_str_hash, rspamd_str_equal, NULL, rspamd_fuzzy_free_node); @@ -1034,6 +1027,13 @@ start_fuzzy (struct rspamd_worker *worker) frequent = g_queue_new (); } + /* Init bloom filter */ + bf = rspamd_bloom_create (2000000L, RSPAMD_DEFAULT_BLOOM_HASHES); + /* Try to read hashes from file */ + if (!read_hashes_file (worker)) { + msg_err ("cannot read hashes file, it can be created after save procedure"); + } + /* Timer event */ evtimer_set (&tev, sync_callback, worker); event_base_set (ctx->ev_base, &tev); diff --git a/src/rdns b/src/rdns -Subproject 38f3dc889752939835591ee1d29495c00117f41 +Subproject 5ca36d831ef871fbc7b76846b554a875c1ef5a8 |