summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/dht/src/dht-hashfn.c
diff options
context:
space:
mode:
authorBasavanagowda Kanur <gowda@gluster.com>2009-02-27 00:36:23 +0530
committerAnand V. Avati <avati@amp.gluster.com>2009-02-27 01:37:08 +0530
commitf097e77ffb386dc73e3639af4a9cd57df0d3d40d (patch)
treec8b3bf1d8148ec36aa9067e6d81b9ca6515ed1b3 /xlators/cluster/dht/src/dht-hashfn.c
parent3d8bc3cbafa84a46e43e46f69d3e7d617d746012 (diff)
moved dht_hashfn_tea() to libglusterfs/hashfn.c as gf_dm_hashfn() (dm - davies-meyer).
moved dht_hashfn_tea() to libglusterfs/src/hashfn.c as gf_dm_hashfn(). Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
Diffstat (limited to 'xlators/cluster/dht/src/dht-hashfn.c')
-rw-r--r--xlators/cluster/dht/src/dht-hashfn.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/xlators/cluster/dht/src/dht-hashfn.c b/xlators/cluster/dht/src/dht-hashfn.c
index ee89eb61afd..31cb828a483 100644
--- a/xlators/cluster/dht/src/dht-hashfn.c
+++ b/xlators/cluster/dht/src/dht-hashfn.c
@@ -26,13 +26,11 @@
#include "glusterfs.h"
#include "xlator.h"
#include "dht-common.h"
-
-
-uint32_t dht_hashfn_tea (const char *name, int len);
+#include "hashfn.h"
typedef enum {
- DHT_HASH_TYPE_TEA,
+ DHT_HASH_TYPE_DM,
} dht_hashfn_type_t;
@@ -43,8 +41,8 @@ dht_hash_compute_internal (int type, const char *name, uint32_t *hash_p)
uint32_t hash = 0;
switch (type) {
- case DHT_HASH_TYPE_TEA:
- hash = dht_hashfn_tea (name, strlen (name));
+ case DHT_HASH_TYPE_DM:
+ hash = gf_dm_hashfn (name, strlen (name));
break;
default:
ret = -1;