Add ring_position constructor needed by serializer.

This commit is contained in:
Gleb Natapov
2016-01-20 17:32:13 +02:00
parent 6cc5b15a9c
commit 49ce2b83df

View File

@@ -338,6 +338,12 @@ public:
, _key(std::experimental::make_optional(std::move(key)))
{ }
ring_position(dht::token token, token_bound bound, std::experimental::optional<partition_key> key)
: _token(std::move(token))
, _token_bound(bound)
, _key(std::move(key))
{ }
ring_position(const dht::decorated_key& dk)
: _token(dk._token)
, _key(std::experimental::make_optional(dk._key))