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.
This commit is contained in:
Tomasz Grabiec
2017-04-07 15:52:30 +02:00
parent 3e060659f1
commit b030ce693d

View File

@@ -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;