From 385e0dcc2eabc3ca59540dd90a6cac769bb0a717 Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Sun, 1 Aug 2021 14:32:33 +0300 Subject: [PATCH] db: schema_tables: coroutinize read_keyspace_mutation() --- db/schema_tables.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/schema_tables.cc b/db/schema_tables.cc index a8805dc921..fdae1bf95e 100644 --- a/db/schema_tables.cc +++ b/db/schema_tables.cc @@ -864,7 +864,7 @@ read_keyspace_mutation(distributed& proxy, const sstring auto key = partition_key::from_singular(*s, keyspace_name); auto slice = s->full_slice(); auto cmd = make_lw_shared(s->id(), s->version(), std::move(slice), proxy.local().get_max_result_size(slice)); - return query_partition_mutation(proxy.local(), std::move(s), std::move(cmd), std::move(key)); + co_return co_await query_partition_mutation(proxy.local(), std::move(s), std::move(cmd), std::move(key)); } static thread_local semaphore the_merge_lock {1};