diff --git a/db/schema_tables.cc b/db/schema_tables.cc index dc9fc8a82f..b76a7ded6f 100644 --- a/db/schema_tables.cc +++ b/db/schema_tables.cc @@ -2347,15 +2347,15 @@ future create_table_from_name(distributed& p */ future> create_tables_from_tables_partition(distributed& proxy, const schema_result::mapped_type& result) { - auto tables = make_lw_shared>(); + auto tables = std::map(); co_await parallel_for_each(result->rows().begin(), result->rows().end(), [&] (const query::result_set_row& row) -> future<> { schema_ptr cfm = co_await create_table_from_table_row(proxy, row); { - tables->emplace(cfm->cf_name(), std::move(cfm)); + tables.emplace(cfm->cf_name(), std::move(cfm)); } }); { - co_return std::move(*tables); + co_return std::move(tables); } }