mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-28 20:50:49 +00:00
Merge pull request #15954 from zhang2014/fix/ISSUES-15265
ISSUES-15265 try fix crash when create database failure
This commit is contained in:
commit
6a0249bf91
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user