dht/ring_position: add ring_position_view::weight()

This will be useful for the translation of ring positions
to BTI encoding.
We will use it in a later commit.
This commit is contained in:
Michał Chojnowski
2025-08-11 13:41:33 +02:00
parent 647d9fe45d
commit 4fb841346b

View File

@@ -251,6 +251,7 @@ public:
const dht::token& token() const noexcept { return *_token; }
const partition_key* key() const { return _key; }
int weight() const { return _weight; }
// Only when key() == nullptr
token_bound get_token_bound() const { return token_bound(_weight); }