projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Merge Lee
[m6w6/libmemcached]
/
libhashkit
/
ketama.c
diff --git
a/libhashkit/ketama.c
b/libhashkit/ketama.c
index 50309bbc693567ae623f863b1f04d582dad3fca0..83b47552a1a8853f88f4863e20a49630ae49e808 100644
(file)
--- a/
libhashkit/ketama.c
+++ b/
libhashkit/ketama.c
@@
-7,6
+7,7
@@
*/
#include "common.h"
*/
#include "common.h"
+#include <math.h>
static uint32_t ketama_server_hash(const char *key, unsigned int key_length, int alignment)
{
static uint32_t ketama_server_hash(const char *key, unsigned int key_length, int alignment)
{
@@
-119,7
+120,7
@@
int update_continuum(hashkit_st *hashkit)
if (hashkit->continuum_key_fn == NULL)
{
if (hashkit->continuum_key_fn == NULL)
{
- sort_host_length= (size_t) snprintf(sort_host, HASHKIT_CONTINUUM_KEY_SIZE, "%
d
",
+ sort_host_length= (size_t) snprintf(sort_host, HASHKIT_CONTINUUM_KEY_SIZE, "%
u
",
points_index);
}
else
points_index);
}
else