Skip to content

Commit

Permalink
clustering_bounds_comparator: do not depend on implicit conversion of…
Browse files Browse the repository at this point in the history
… keys to bytes_view

This implicit conversion will soon be gone, as it is dangerous.
Ask for the representation explicitly.
  • Loading branch information
avikivity authored and michoecho committed Dec 20, 2020
1 parent 1dd6d70 commit 8521248
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clustering_bounds_comparator.hh
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ public:
int operator()(const clustering_key_prefix& p1, int32_t w1, const clustering_key_prefix& p2, int32_t w2) const {
auto type = _s.get().clustering_key_prefix_type();
auto res = prefix_equality_tri_compare(type->types().begin(),
type->begin(p1), type->end(p1),
type->begin(p2), type->end(p2),
type->begin(p1.representation()), type->end(p1.representation()),
type->begin(p2.representation()), type->end(p2.representation()),
::tri_compare);
if (res) {
return res;
Expand Down

0 comments on commit 8521248

Please sign in to comment.