From 2a06331f82ec59f34038190e2e219d54296baee2 Mon Sep 17 00:00:00 2001 From: Markus Makela Date: Fri, 6 Feb 2015 22:09:28 +0200 Subject: [PATCH] Fixed readwritesplit hashing function returning the key value instead of the hash value. --- server/modules/routing/readwritesplit/readwritesplit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/modules/routing/readwritesplit/readwritesplit.c b/server/modules/routing/readwritesplit/readwritesplit.c index df949b3c2..6c48b4997 100644 --- a/server/modules/routing/readwritesplit/readwritesplit.c +++ b/server/modules/routing/readwritesplit/readwritesplit.c @@ -325,7 +325,7 @@ static int hashkeyfun( while((c = *ptr++)){ hash = c + (hash << 6) + (hash << 16) - hash; } - return *(int *)key; + return hash; } static int hashcmpfun(