mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-02 12:32:04 +00:00
remove try catch + submodule update
This commit is contained in:
parent
4be51007c5
commit
313f72e41a
@ -98,19 +98,15 @@ BlockIO InterpreterDropQuery::executeToTable(String & database_name_, String & t
|
||||
try
|
||||
{
|
||||
//There some kind of tables that have no metadata - ignore renaming
|
||||
try
|
||||
{
|
||||
if (Poco::File(prev_metadata_name).exists())
|
||||
Poco::File(prev_metadata_name).renameTo(drop_metadata_name);
|
||||
} catch (...) {}
|
||||
/// Delete table data
|
||||
database_and_table.second->drop();
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (Poco::File(drop_metadata_name).exists())
|
||||
Poco::File(drop_metadata_name).renameTo(prev_metadata_name);
|
||||
} catch (...) {}
|
||||
throw;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user