Allow allocations

This commit is contained in:
Nikita Mikhaylov 2021-09-06 14:04:37 +00:00
parent ea0fbf81af
commit 17d65b3d7b

View File

@ -147,7 +147,6 @@ void MergeTreeBackgroundExecutor::routine(ItemPtr item)
auto erase_from_active = [&] auto erase_from_active = [&]
{ {
DENY_ALLOCATIONS_IN_SCOPE;
active.erase(std::remove(active.begin(), active.end(), item), active.end()); active.erase(std::remove(active.begin(), active.end(), item), active.end());
}; };
@ -155,7 +154,6 @@ void MergeTreeBackgroundExecutor::routine(ItemPtr item)
{ {
if (item->task->execute()) if (item->task->execute())
{ {
DENY_ALLOCATIONS_IN_SCOPE;
std::lock_guard guard(mutex); std::lock_guard guard(mutex);
if (currently_deleting.contains(item->task->getStorageID())) if (currently_deleting.contains(item->task->getStorageID()))