Remove dead bit in state for servers.
[m6w6/libmemcached] / libhashkit / ketama.c
index 50309bbc693567ae623f863b1f04d582dad3fca0..45052c22baade12761b69dd5091558bb1837dfb8 100644 (file)
@@ -6,8 +6,10 @@
  * the COPYING file in the parent directory for full text.
  */
 
-#include "common.h"
+#include <libhashkit/common.h>
+#include <math.h>
 
+#if 0
 static uint32_t ketama_server_hash(const char *key, unsigned int key_length, int alignment)
 {
   unsigned char results[16];
@@ -119,7 +121,7 @@ int update_continuum(hashkit_st *hashkit)
 
       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
@@ -159,3 +161,4 @@ int update_continuum(hashkit_st *hashkit)
 
   return 0;
 }
+#endif