fix to_partition_range() inclusiveness
A cut-and-paste accident in query::to_partition_range caused the wrong end's inclusiveness to be tested. Signed-off-by: Nadav Har'El <nyh@scylladb.com>
This commit is contained in:
2
query.cc
2
query.cc
@@ -255,7 +255,7 @@ to_partition_range(query::range<dht::token> r) {
|
||||
|
||||
auto end = r.end()
|
||||
? bound_opt(dht::ring_position(r.end()->value(),
|
||||
r.start()->is_inclusive()
|
||||
r.end()->is_inclusive()
|
||||
? dht::ring_position::token_bound::end
|
||||
: dht::ring_position::token_bound::start))
|
||||
: bound_opt();
|
||||
|
||||
Reference in New Issue
Block a user