self->virtual_bucket= NULL;
- self->distribution= MEMCACHED_DISTRIBUTION_MODULA;
+ self->distribution= MEMCACHED_DISTRIBUTION_CONSISTENT_KETAMA_SPY;
if (hashkit_create(&self->hashkit) == NULL)
{
memcached_st *self= memcached_create(NULL);
if (self == NULL)
{
- errno= ENOMEM;
return NULL;
}
if (memcached_failed(rc))
{
memcached_free(self);
- errno= EINVAL;
return NULL;
}