Skip to content

Commit

Permalink
FIX: Do not use MEMCACHED_POINTS_PER_SERVER_KETAMA
Browse files Browse the repository at this point in the history
  • Loading branch information
namsic committed Jan 29, 2024
1 parent d7d5f51 commit 97e0a04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmemcached/hosts.cc
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ static memcached_return_t update_continuum_based_on_rgroups(memcached_st *ptr)
{
if (!all_weights_same) {
float pct= (float)list[host_index].weight / (float)total_weight;
pointer_per_server= (uint32_t) ((floor((float) (pct * MEMCACHED_POINTS_PER_SERVER_KETAMA / 4 * (float)live_servers + 0.0000000001))) * 4);
pointer_per_server= (uint32_t) ((floor((float) (pct * MEMCACHED_POINTS_PER_SERVER / 4 * (float)live_servers + 0.0000000001))) * 4);
}
if (DEBUG)
{
Expand Down

0 comments on commit 97e0a04

Please sign in to comment.