mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-23 18:20:50 +00:00
Make drop table a little bit more robust
This commit is contained in:
parent
89b712a180
commit
3b92692458
@ -1252,7 +1252,16 @@ void MergeTreeData::dropAllData()
|
||||
clearPartsFromFilesystem(all_parts);
|
||||
|
||||
for (const auto & [path, disk] : getRelativeDataPathsWithDisks())
|
||||
disk->removeRecursive(path);
|
||||
{
|
||||
try
|
||||
{
|
||||
disk->removeRecursive(path);
|
||||
}
|
||||
catch (const Poco::FileNotFoundException &)
|
||||
{
|
||||
/// If the file is already deleted, do nothing.
|
||||
}
|
||||
}
|
||||
|
||||
LOG_TRACE(log, "dropAllData: done.");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user