From 264b6ee69ee5a02721bd3c8bb32a5bd78f74b59c Mon Sep 17 00:00:00 2001 From: Asias He Date: Wed, 14 Dec 2016 16:03:46 +0800 Subject: [PATCH] dht: Introduce dht::token_range an dht::partition_range nonwrapping_range and nonwrapping_range 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. query::partition_range is used in places not related to query at all. Let's unify the usage project wide. --- dht/i_partitioner.hh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dht/i_partitioner.hh b/dht/i_partitioner.hh index 597bf20f5b..9527b50b90 100644 --- a/dht/i_partitioner.hh +++ b/dht/i_partitioner.hh @@ -72,6 +72,9 @@ class decorated_key; class token; class ring_position; +using partition_range = nonwrapping_range; +using token_range = nonwrapping_range; + class token { public: enum class kind {