diff --git a/sstables/index_reader.hh b/sstables/index_reader.hh index 3eb307626f..03b7d6dcd1 100644 --- a/sstables/index_reader.hh +++ b/sstables/index_reader.hh @@ -718,7 +718,7 @@ public: return make_ready_future<>(); } - auto cmp_with_start = [pos_cmp = promoted_index_block_compare(s), s] + auto cmp_with_start = [pos_cmp = promoted_index_block_compare(s), &s] (position_in_partition_view pos, const promoted_index_block& info) -> bool { return pos_cmp(pos, info.start(s)); };