Update StorageSystemDatabases.cpp

This commit is contained in:
Alexander Tokmakov 2022-12-12 18:18:45 +03:00 committed by GitHub
parent 3a9456ba40
commit dd5aac75f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,6 +47,8 @@ static String getEngineFull(const DatabasePtr & database)
/// Database was dropped /// Database was dropped
if (!locked_database && name == database->getDatabaseName()) if (!locked_database && name == database->getDatabaseName())
return {}; return {};
guard.reset();
} }
ASTPtr ast = database->getCreateDatabaseQuery(); ASTPtr ast = database->getCreateDatabaseQuery();