Better code (add suggestion from Azat)

This commit is contained in:
Alexey Milovidov 2021-02-02 06:05:40 +03:00
parent bd0ec1b9f4
commit 9f8f908779

View File

@ -246,7 +246,7 @@ void SystemLog<LogElement>::add(const LogElement & element)
/// The size of allocation can be in order of a few megabytes.
/// But this should not be accounted for query memory usage.
/// Otherwise the tests like 01017_uniqCombined_memory_usage.sql will be flacky.
MemoryTracker::BlockerInThread temporarily_disable_memory_tracker;
MemoryTracker::BlockerInThread temporarily_disable_memory_tracker(VariableContext::Global);
/// Should not log messages under mutex.
bool queue_is_half_full = false;