diff --git a/multishard_mutation_query.cc b/multishard_mutation_query.cc index 649ef82320..5059915ccc 100644 --- a/multishard_mutation_query.cc +++ b/multishard_mutation_query.cc @@ -774,6 +774,9 @@ future>, cache_tempera const dht::partition_range_vector& ranges, tracing::trace_state_ptr trace_state, db::timeout_clock::time_point timeout) { + if (cmd.slice.options.contains(query::partition_slice::option::reversed)) { + throw std::runtime_error("query_mutations_on_all_shards(): reverse range scans are not supported"); + } return do_query_on_all_shards(db, s, cmd, ranges, std::move(trace_state), timeout, [s, &cmd] (query::result_memory_accounter&& accounter) { return mutation_query_result_builder(*s, cmd.slice, std::move(accounter));