*/
#include "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];
hashkit_continuum_point_st *ct2= (hashkit_continuum_point_st *)t2;
if (ct1->value == ct2->value)
- return 0;
+ return EXIT_SUCCESS;
else if (ct1->value > ct2->value)
- return 1;
+ return EXIT_FAILURE;
else
return -1;
}
live_servers= (uint32_t)hashkit->list_size;
if (live_servers == 0)
- return 0;
+ return EXIT_SUCCESS;
if (hashkit->weight_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
qsort(hashkit->continuum, hashkit->continuum_points_count, sizeof(hashkit_continuum_point_st),
continuum_points_cmp);
- return 0;
+ return EXIT_SUCCESS;
}
+#endif