mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-24 10:30:38 +00:00
The main motivation behind this change is to make get_ranges() easier for consumers to work with the returned ranges, e.g. binary search to find a range in which a token is contained. In addition, a wrap-around range introduces corner cases, so we should avoid it altogether. Suppose that a node owns three tokens: -5, 6, 8 get_ranges() would return the following ranges: (8, -5], (-5, 6], (6, 8] get_ranges() will now return the following ranges: (-inf, -5], (-5, 6], (6, 8], (8, +inf) Signed-off-by: Raphael S. Carvalho <raphaelsc@scylladb.com> Message-Id: <4bda1428d1ebbe7c8af25aa65119edc5b97bc2eb.1453827605.git.raphaelsc@scylladb.com>