diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-09-05 13:01:53 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-09-05 13:01:53 +0100 |
commit | 6f26c3c379d56ed31b128f2c680da2bc2af8ebc3 (patch) | |
tree | 36cc38b183758694adc624f3a8e90ff2ca2f805f /src | |
parent | 654d10dc4cec28a33309f022e6ad48dde91c1b14 (diff) | |
download | rspamd-6f26c3c379d56ed31b128f2c680da2bc2af8ebc3.tar.gz rspamd-6f26c3c379d56ed31b128f2c680da2bc2af8ebc3.zip |
Use normal naming for `hashfile` option.
It can be also named as `hash_file` now.
Diffstat (limited to 'src')
-rw-r--r-- | src/fuzzy_storage.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c index c32ed61fa..06c8b393a 100644 --- a/src/fuzzy_storage.c +++ b/src/fuzzy_storage.c @@ -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, |