query: add tombstone-limit to read-command
Propagate the tombstone-limit from coordinator to replicas, to make sure all is using the same limit.
This commit is contained in:
@@ -2265,7 +2265,8 @@ void delete_ghost_rows_visitor::accept_new_row(const clustering_key& ck, const q
|
||||
|
||||
std::vector<query::clustering_range> bounds{query::clustering_range::make_singular(base_ck)};
|
||||
query::partition_slice partition_slice(std::move(bounds), {}, {}, selection->get_query_options());
|
||||
auto command = ::make_lw_shared<query::read_command>(_base_schema->id(), _base_schema->version(), partition_slice, _proxy.get_max_result_size(partition_slice));
|
||||
auto command = ::make_lw_shared<query::read_command>(_base_schema->id(), _base_schema->version(), partition_slice,
|
||||
_proxy.get_max_result_size(partition_slice), query::tombstone_limit(_proxy.get_tombstone_limit()));
|
||||
auto timeout = db::timeout_clock::now() + _timeout_duration;
|
||||
service::storage_proxy::coordinator_query_options opts{timeout, _state.get_permit(), _state.get_client_state(), _state.get_trace_state()};
|
||||
auto base_qr = _proxy.query(_base_schema, command, std::move(partition_ranges), db::consistency_level::ALL, opts).get0();
|
||||
|
||||
Reference in New Issue
Block a user