diff --git a/db/view/build_progress_virtual_reader.hh b/db/view/build_progress_virtual_reader.hh index d2473c9e6c..2309176402 100644 --- a/db/view/build_progress_virtual_reader.hh +++ b/db/view/build_progress_virtual_reader.hh @@ -197,7 +197,7 @@ public: streamed_mutation::forwarding fwd, mutation_reader::forwarding fwd_mr) { return flat_mutation_reader_v2(std::make_unique( - std::move(s), + s, std::move(permit), _db.find_column_family(s->ks_name(), system_keyspace::v3::SCYLLA_VIEWS_BUILDS_IN_PROGRESS), range, diff --git a/index/built_indexes_virtual_reader.hh b/index/built_indexes_virtual_reader.hh index c74e12cb37..cc304d1bec 100644 --- a/index/built_indexes_virtual_reader.hh +++ b/index/built_indexes_virtual_reader.hh @@ -223,7 +223,7 @@ public: mutation_reader::forwarding fwd_mr) { return make_flat_mutation_reader_v2( _db, - std::move(s), + s, std::move(permit), _db.find_column_family(s->ks_name(), system_keyspace::v3::BUILT_VIEWS), range, diff --git a/replica/database.hh b/replica/database.hh index 664283c0ea..390867d805 100644 --- a/replica/database.hh +++ b/replica/database.hh @@ -705,7 +705,7 @@ public: mutation_reader::forwarding fwd_mr = mutation_reader::forwarding::no) const; flat_mutation_reader_v2 make_streaming_reader(schema_ptr schema, reader_permit permit, const dht::partition_range& range) { - return make_streaming_reader(std::move(schema), std::move(permit), range, schema->full_slice()); + return make_streaming_reader(schema, std::move(permit), range, schema->full_slice()); } // Stream reader from the given sstables diff --git a/sstables/mx/reader.cc b/sstables/mx/reader.cc index 8929f9d7b2..892d902aa1 100644 --- a/sstables/mx/reader.cc +++ b/sstables/mx/reader.cc @@ -1701,7 +1701,7 @@ static flat_mutation_reader_v2 make_reader( // in 'native-reversed' format (if ever). if (slice.get().is_reversed()) { return make_flat_mutation_reader_v2( - std::move(sstable), std::move(schema), std::move(permit), range, + std::move(sstable), schema, std::move(permit), range, legacy_reverse_slice_to_native_reverse_slice(*schema, slice.get()), pc, std::move(trace_state), fwd, fwd_mr, monitor); }