Commit 349abc76 authored by Reza Naghibi's avatar Reza Naghibi

Fix canon_point calculation

parent f97b7346
...@@ -290,7 +290,7 @@ shardcfg_hashcircle(struct sharddir *shardd) ...@@ -290,7 +290,7 @@ shardcfg_hashcircle(struct sharddir *shardd)
} }
/* not used in current interface */ /* not used in current interface */
shardd->backend[h].canon_point = shardd->backend[h].canon_point =
shardd->hashcircle[i].point; shardd->hashcircle[i - j].point;
} }
assert (i == n_points); assert (i == n_points);
qsort( (void *) shardd->hashcircle, n_points, qsort( (void *) shardd->hashcircle, n_points,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment