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:
Asias He
2016-12-14 16:03:46 +08:00
parent 32fb4c3661
commit 264b6ee69e

View File

@@ -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 {