mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 10:52:30 +00:00
Remove redundant
This commit is contained in:
parent
21203de56b
commit
d4d147abab
@ -1182,16 +1182,7 @@ std::optional<bool> IMergeTreeDataPart::keepSharedDataInDecoupledStorage() const
|
||||
if (force_keep_shared_data)
|
||||
return true;
|
||||
|
||||
/// TODO Unlocking in try-catch and ignoring exception look ugly
|
||||
try
|
||||
{
|
||||
return !storage.unlockSharedData(*this);
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
tryLogCurrentException(__PRETTY_FUNCTION__, "There is a problem with deleting part " + name + " from filesystem");
|
||||
}
|
||||
return {};
|
||||
return !storage.unlockSharedData(*this, is_temp ? relative_path : name);
|
||||
}
|
||||
|
||||
void IMergeTreeDataPart::remove() const
|
||||
|
Loading…
Reference in New Issue
Block a user