mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-22 17:40:34 +00:00
db/legacy_schema_tables: Fix dead lock in create table statement
merge_schema() was recursively calling itself, causing it to block iself on a non-recursive lock.
This commit is contained in:
@@ -512,7 +512,7 @@ future<> save_system_keyspace_schema() {
|
||||
future<> merge_schema(service::storage_proxy& proxy, std::vector<mutation> mutations, bool do_flush)
|
||||
{
|
||||
return merge_lock().then([&proxy, mutations = std::move(mutations), do_flush] {
|
||||
return merge_schema(proxy, std::move(mutations), do_flush);
|
||||
return do_merge_schema(proxy, std::move(mutations), do_flush);
|
||||
}).finally([] {
|
||||
return merge_unlock();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user