From 2840405c8a647a309cb11e1146d0f96d8d9b6b56 Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Thu, 25 Nov 2021 21:06:57 +0300 Subject: [PATCH] Fix typo in ThreadStatus::query_profiler_enabled --- src/Common/ThreadStatus.h | 4 ++-- src/Interpreters/ThreadStatusExt.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Common/ThreadStatus.h b/src/Common/ThreadStatus.h index d22f6e1574b..220c364d6bf 100644 --- a/src/Common/ThreadStatus.h +++ b/src/Common/ThreadStatus.h @@ -165,7 +165,7 @@ protected: std::function 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 diff --git a/src/Interpreters/ThreadStatusExt.cpp b/src/Interpreters/ThreadStatusExt.cpp index e796c2b85a1..49ff09ed9a7 100644 --- a/src/Interpreters/ThreadStatusExt.cpp +++ b/src/Interpreters/ThreadStatusExt.cpp @@ -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