Fix typo in ThreadStatus::query_profiler_enabled

This commit is contained in:
Azat Khuzhin 2021-11-25 21:06:57 +03:00
parent 51a0d6c2f3
commit 2840405c8a
2 changed files with 3 additions and 3 deletions

View File

@ -165,7 +165,7 @@ protected:
std::function<void()> fatal_error_callback;
/// It is used to avoid enabling the query profiler when you have multiple ThreadStatus in the same thread
bool query_profiled_enabled = true;
bool query_profiler_enabled = true;
/// Requires access to query_id.
friend class MemoryTrackerThreadSwitcher;
@ -207,7 +207,7 @@ public:
void disableProfiling()
{
query_profiled_enabled = false;
query_profiler_enabled = false;
}
/// Starts new query and create new thread group for it, current thread becomes master thread of the query

View File

@ -310,7 +310,7 @@ void ThreadStatus::resetPerformanceCountersLastUsage()
void ThreadStatus::initQueryProfiler()
{
if (!query_profiled_enabled)
if (!query_profiler_enabled)
return;
/// query profilers are useless without trace collector