mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-30 19:46:48 +00:00
After the conversion to nonwrapping ranges, construct_range_to_endpoint_map() may be called with semi-infinite token ranges, but it does not expect this, calling nonwrapping_range::end()->value() unconditionally. Fix by checking whether this is a semi-infinite range on the right, and replace ->value() by maximum_token() instead. Fixes `nodetool describering` (once more). Message-Id: <1478983010-29630-1-git-send-email-avi@scylladb.com>