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:
Tomasz Grabiec
2015-07-23 12:26:23 +02:00
parent e41880fc66
commit 3fd682de4b

View File

@@ -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();
});