]> source.dussan.org Git - rspamd.git/commitdiff
Fix initialization order.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 21 Mar 2014 11:17:58 +0000 (11:17 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 21 Mar 2014 11:17:58 +0000 (11:17 +0000)
src/fuzzy_storage.c
src/rdns

index 831d60c44cd141428e540053d6b71277d79f1373..6a3e12a0454083437505d928b70ce76c4acb3062 100644 (file)
@@ -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);
index 38f3dc889752939835591ee1d29495c00117f41e..5ca36d831ef871fbc7b76846b554a875c1ef5a87 160000 (submodule)
--- a/src/rdns
+++ b/src/rdns
@@ -1 +1 @@
-Subproject commit 38f3dc889752939835591ee1d29495c00117f41e
+Subproject commit 5ca36d831ef871fbc7b76846b554a875c1ef5a87