can_remove_anything is false for temporary parts

This commit is contained in:
Sema Checherinda 2022-12-05 15:56:04 +01:00
parent 005cded791
commit be00335ca4

View File

@ -1646,7 +1646,7 @@ void IMergeTreeDataPart::remove()
if (getState() == MergeTreeDataPartState::Temporary)
{
LOG_TRACE(storage.log, "Part {} in temporary state can be removed without unlocking shared state", name);
return CanRemoveDescription{.can_remove_anything = true, .files_not_to_remove = {} };
return CanRemoveDescription{.can_remove_anything = false, .files_not_to_remove = {} };
}
auto [can_remove, files_not_to_remove] = canRemovePart();