* Fix calls to auto methods so that if value is not passed in nothing bad happens.
* New parser calls for generating memcached_st objects.
* New error system.
-
+ * A behavior change has been now made that if you specify a weight for any
+ server, we enable the weight flag and do weight balancing.
0.48 Tue Mar 15 23:05:18 PDT 2011
* Fix memory leak in server parse.
{
for (uint32_t x= 0; x < pointer_per_hash; x++)
{
- value= ketama_server_hash(sort_host, (size_t)sort_host_length, x);
- ptr->ketama.continuum[continuum_index].index= host_index;
- ptr->ketama.continuum[continuum_index++].value= value;
+ uint32_t value= ketama_server_hash(sort_host, (size_t)sort_host_length, x);
- ptr->ketama.continuum[continuum_index].index= host_index;
- ptr->ketama.continuum[continuum_index++].value= value;
++ ptr->ketama.continuum[continuum_index].index= host_index;
++ ptr->ketama.continuum[continuum_index++].value= value;
}
}
else
{
for (uint32_t x = 0; x < pointer_per_hash; x++)
{
- value= ketama_server_hash(sort_host, (size_t)sort_host_length, x);
- uint32_t value= ketama_server_hash(sort_host, (size_t)sort_host_length, x);
-- ptr->ketama.continuum[continuum_index].index= host_index;
-- ptr->ketama.continuum[continuum_index++].value= value;
++ uint32_t value= ketama_server_hash(sort_host, (size_t)sort_host_length, x);
++ ptr->ketama.continuum[continuum_index].index= host_index;
++ ptr->ketama.continuum[continuum_index++].value= value;
}
}
else