summaryrefslogtreecommitdiff
path: root/client/nirvana_conhash.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'client/nirvana_conhash.cpp')
-rw-r--r--client/nirvana_conhash.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/nirvana_conhash.cpp b/client/nirvana_conhash.cpp
index 99674fd..d687242 100644
--- a/client/nirvana_conhash.cpp
+++ b/client/nirvana_conhash.cpp
@@ -145,7 +145,7 @@ static u_int64_t bucket_gen_uniq_point(struct ch_bucket_inner *inner_bucket, u_i
u_int32_t hash, i=0;
seed = (((u_int64_t)cur_point_index)<<32) | inner_bucket->bucket.bucket_id;
- hash = murmurhash2(&seed, sizeof(u_int64_t), 23068673);
+ hash = murmurhash2(&seed, sizeof(u_int64_t), 515880193);
x = (((u_int64_t)hash)<<32) | inner_bucket->bucket.bucket_id;
while(i != cur_point_index)
@@ -155,7 +155,7 @@ static u_int64_t bucket_gen_uniq_point(struct ch_bucket_inner *inner_bucket, u_i
if(x == inner_bucket->point_array[i].point_val) //��ͻ
{
seed = (((u_int64_t)hash)<<32) | inner_bucket->bucket.bucket_id;
- hash = murmurhash2(&seed, sizeof(u_int64_t), 23068673);
+ hash = murmurhash2(&seed, sizeof(u_int64_t), 515880193);
x = (((u_int64_t)hash)<<32) | inner_bucket->bucket.bucket_id;
i = 0;
break;
@@ -434,7 +434,7 @@ enum CONHASH_ERRCODE conhash_lookup_bucket(struct consistent_hash *ch, const voi
return CONHASH_NO_VALID_BUCKETS;
}
- hash = MurmurHash64A(key, len, 23068673);
+ hash = MurmurHash64A(key, len, 515880193);
idx = search_up_bound(hash, ch->point_array, ch->point_num, sizeof(struct ch_point), offsetof(struct ch_point, point_val));
ch->point_array[idx].hit_cnt++;
bucket_index = ch->point_array[idx].bucket_index;