mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-12 19:02:12 +00:00
service/storage_proxy: Enable hash caching
Set the option that enables the underlying memtable and cache readers to request caching of a cell's hash, for requests that require a digest. Signed-off-by: Duarte Nunes <duarte@scylladb.com>
This commit is contained in:
@@ -2921,6 +2921,7 @@ storage_proxy::query_result_local_digest(schema_ptr s, lw_shared_ptr<query::read
|
||||
future<foreign_ptr<lw_shared_ptr<query::result>>, cache_temperature>
|
||||
storage_proxy::query_result_local(schema_ptr s, lw_shared_ptr<query::read_command> cmd, const dht::partition_range& pr, query::result_options opts,
|
||||
tracing::trace_state_ptr trace_state, storage_proxy::clock_type::time_point timeout, uint64_t max_size) {
|
||||
cmd->slice.options.set_if<query::partition_slice::option::with_digest>(opts.request != query::result_request::only_result);
|
||||
if (pr.is_singular()) {
|
||||
unsigned shard = _db.local().shard_of(pr.start()->value().token());
|
||||
return _db.invoke_on(shard, [max_size, gs = global_schema_ptr(s), prv = dht::partition_range_vector({pr}) /* FIXME: pr is copied */, cmd, opts, timeout, gt = tracing::global_trace_state_ptr(std::move(trace_state))] (database& db) mutable {
|
||||
|
||||
Reference in New Issue
Block a user