Update DatabaseAtomic.cpp

This commit is contained in:
Kseniia Sumarokova 2021-06-28 17:37:22 +03:00 committed by GitHub
parent a96c7a3a70
commit ff8c44179c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -109,7 +109,7 @@ StoragePtr DatabaseAtomic::detachTable(const String & name)
void DatabaseAtomic::dropTable(ContextPtr local_context, const String & table_name, bool no_delay)
{
auto storage = tryGetTable(table_name, local_context).get();
auto storage = tryGetTable(table_name, local_context);
/// Remove the inner table (if any) to avoid deadlock
/// (due to attempt to execute DROP from the worker thread)
if (storage)