From 960a14088014064bd58508eae395a664c3fdff65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Dziepak?= Date: Thu, 20 Jul 2017 13:11:45 +0100 Subject: [PATCH] index_reader: advance_and_check_if_present() use index_comparator --- sstables/index_reader.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sstables/index_reader.hh b/sstables/index_reader.hh index 3132bb0656..d3287b69b6 100644 --- a/sstables/index_reader.hh +++ b/sstables/index_reader.hh @@ -497,8 +497,8 @@ public: return make_ready_future(false); } return read_partition_data().then([this, key] { - dht::ring_position_comparator cmp(*_sstable->_schema); - return cmp(key, partition_key()) == 0; + index_comparator cmp(*_sstable->_schema); + return cmp(key, current_partition_entry()) == 0; }); }); }