From b030ce693da00aec17704a2bf2cad6e7d2e95029 Mon Sep 17 00:00:00 2001 From: Tomasz Grabiec Date: Fri, 7 Apr 2017 15:52:30 +0200 Subject: [PATCH] sstables: mutation_reader: Don't try to read index to skip to static row Static row is always at the beginning, there's no point in doing index lookups. --- sstables/partition.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sstables/partition.cc b/sstables/partition.cc index f92f00e8dc..81ce129cf3 100644 --- a/sstables/partition.cc +++ b/sstables/partition.cc @@ -892,6 +892,9 @@ public: } future<> advance_context(position_in_partition_view pos) { + if (pos.is_static_row()) { + return make_ready_future<>(); + } return [this] { if (!_index_in_current) { _index_in_current = true;