Fixed readwritesplit hashing function returning the key value instead of the hash value.
This commit is contained in:
@ -325,7 +325,7 @@ static int hashkeyfun(
|
|||||||
while((c = *ptr++)){
|
while((c = *ptr++)){
|
||||||
hash = c + (hash << 6) + (hash << 16) - hash;
|
hash = c + (hash << 6) + (hash << 16) - hash;
|
||||||
}
|
}
|
||||||
return *(int *)key;
|
return hash;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int hashcmpfun(
|
static int hashcmpfun(
|
||||||
|
Reference in New Issue
Block a user