mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-31 03:56:42 +00:00
dht: Introduce dht::token_range an dht::partition_range
nonwrapping_range<ring_position> and nonwrapping_range<token> are used in many places. Let's make an alias for them to make it less verbose. Also there is a query::partition_range in query-request.hh which is the alias of nonwrapping_range<ring_position>. query::partition_range is used in places not related to query at all. Let's unify the usage project wide.
This commit is contained in:
@@ -72,6 +72,9 @@ class decorated_key;
|
||||
class token;
|
||||
class ring_position;
|
||||
|
||||
using partition_range = nonwrapping_range<ring_position>;
|
||||
using token_range = nonwrapping_range<token>;
|
||||
|
||||
class token {
|
||||
public:
|
||||
enum class kind {
|
||||
|
||||
Reference in New Issue
Block a user