mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
Fixed current counter id check
This commit is contained in:
parent
04a902ba68
commit
f98c53e8d8
@ -271,7 +271,7 @@ void PerfEventsCounters::initializeProfileEvents(PerfEventsCounters & counters)
|
||||
{
|
||||
if (current_thread_counters_id.has_value())
|
||||
{
|
||||
if (current_thread_counters_id != counters.id)
|
||||
if (current_thread_counters_id == counters.id)
|
||||
LOG_WARNING(getLogger(), "Only one instance of `PerfEventsCounters` can be used on the thread");
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user