]> source.dussan.org Git - rspamd.git/commitdiff
Use normal naming for `hashfile` option.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 5 Sep 2014 12:01:53 +0000 (13:01 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 5 Sep 2014 12:01:53 +0000 (13:01 +0100)
It can be also named as `hash_file` now.

src/fuzzy_storage.c

index c32ed61fac6ef41683d2b816c5e62899bbdd5c9a..06c8b393addc07cf6a8ddd51cf1948b1deffdab2 100644 (file)
@@ -524,7 +524,7 @@ check_hash_node (GQueue *hash, fuzzy_hash_t *s, gint update_value,
                                return NULL;
                        }
                        else if (h->h.block_size== s->block_size) {
-                               msg_debug ("fuzzy hash was found in judy tree");
+                               msg_debug ("fuzzy hash was found in tree");
                                if (update_value) {
                                        h->value += update_value;
                                }
@@ -976,6 +976,10 @@ init_fuzzy (struct rspamd_config *cfg)
                rspamd_rcl_parse_struct_string, ctx,
                G_STRUCT_OFFSET (struct rspamd_fuzzy_storage_ctx, hashfile), 0);
 
+       rspamd_rcl_register_worker_option (cfg, type, "hash_file",
+               rspamd_rcl_parse_struct_string, ctx,
+               G_STRUCT_OFFSET (struct rspamd_fuzzy_storage_ctx, hashfile), 0);
+
        rspamd_rcl_register_worker_option (cfg, type, "max_mods",
                rspamd_rcl_parse_struct_integer, ctx,
                G_STRUCT_OFFSET (struct rspamd_fuzzy_storage_ctx,