From 8e399cdba1bba1da8c1de2b8a22efe719aa30cde Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 8 Oct 2012 21:21:53 +0400 Subject: * Use murmur hash for all hashes as it is more efficient and provides more uniform distribution as glib's default one. * Fix probability renormalization while using advanced classification. --- src/lmtp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lmtp.c') diff --git a/src/lmtp.c b/src/lmtp.c index 4e7373158..67743e92a 100644 --- a/src/lmtp.c +++ b/src/lmtp.c @@ -271,7 +271,7 @@ accept_socket (gint fd, short what, void *arg) new_task->task_pool = memory_pool_new (memory_pool_get_size ()); /* Add destructor for recipients list (it would be better to use anonymous function here */ memory_pool_add_destructor (new_task->task_pool, (pool_destruct_func) rcpt_destruct, new_task); - new_task->results = g_hash_table_new (g_str_hash, g_str_equal); + new_task->results = g_hash_table_new (rspamd_str_hash, rspamd_str_equal); new_task->ev_base = worker->ctx; memory_pool_add_destructor (new_task->task_pool, (pool_destruct_func) g_hash_table_destroy, new_task->results); worker->srv->stat->connections_count++; -- cgit v1.2.3