Merge pull request #15954 from zhang2014/fix/ISSUES-15265

ISSUES-15265 try fix crash when create database failure
This commit is contained in:
tavplubix 2020-10-14 13:49:20 +03:00 committed by GitHub
commit 6a0249bf91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -218,7 +218,7 @@ BlockIO InterpreterCreateQuery::createDatabase(ASTCreateQuery & create)
{
if (renamed)
{
[[maybe_unused]] bool removed = fs::remove(metadata_file_tmp_path);
[[maybe_unused]] bool removed = fs::remove(metadata_file_path);
assert(removed);
}
if (added)