projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Merge in changes to allow for weights on hosts.
[awesomized/libmemcached]
/
libhashkit
/
digest.c
diff --git
a/libhashkit/digest.c
b/libhashkit/digest.c
index bca6b5b59a0e474e3b0bf8968f1c231b60f26090..e1559819db8faff2d3f6d4e6e7b2f3e079ea449b 100644
(file)
--- a/
libhashkit/digest.c
+++ b/
libhashkit/digest.c
@@
-6,7
+6,7
@@
* the COPYING file in the parent directory for full text.
*/
* the COPYING file in the parent directory for full text.
*/
-#include
"common.h"
+#include
<libhashkit/common.h>
uint32_t hashkit_digest(const hashkit_st *self, const char *key, size_t key_length)
{
uint32_t hashkit_digest(const hashkit_st *self, const char *key, size_t key_length)
{
@@
-38,7
+38,11
@@
uint32_t libhashkit_digest(const char *key, size_t key_length, hashkit_hash_algo
return 1;
#endif
case HASHKIT_HASH_MURMUR:
return 1;
#endif
case HASHKIT_HASH_MURMUR:
+#ifdef HAVE_MURMUR_HASH
return libhashkit_murmur(key, key_length);
return libhashkit_murmur(key, key_length);
+#else
+ return 1;
+#endif
case HASHKIT_HASH_JENKINS:
return libhashkit_jenkins(key, key_length);
case HASHKIT_HASH_CUSTOM:
case HASHKIT_HASH_JENKINS:
return libhashkit_jenkins(key, key_length);
case HASHKIT_HASH_CUSTOM: