mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-01 03:52:15 +00:00
Update src/Common/MemoryTracker.cpp
Co-authored-by: alesapin <alesapin@clickhouse.com>
This commit is contained in:
parent
4e612d0e1a
commit
1310a89fb2
@ -190,7 +190,7 @@ void MemoryTracker::allocImpl(Int64 size, bool throw_if_memory_exceeded, MemoryT
|
||||
if (unlikely(current_hard_limit && will_be > current_hard_limit) && memoryTrackerCanThrow(level, false) && throw_if_memory_exceeded)
|
||||
{
|
||||
bool need_to_throw = true;
|
||||
bool try_to_free_momory = overcommit_tracker != nullptr && query_tracker != nullptr;
|
||||
bool try_to_free_memory = overcommit_tracker != nullptr && query_tracker != nullptr;
|
||||
if (try_to_free_momory)
|
||||
need_to_throw = overcommit_tracker->needToStopQuery(query_tracker);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user