mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-21 01:00:48 +00:00
Update profile event forwarding
This commit is contained in:
parent
abb74d2a5b
commit
8be70bc417
@ -843,7 +843,7 @@ namespace
|
||||
struct ProfileEventsSnapshot
|
||||
{
|
||||
UInt64 thread_id;
|
||||
ProfileEvents::Counters counters;
|
||||
ProfileEvents::Counters::Snapshot counters;
|
||||
Int64 memory_usage;
|
||||
time_t current_time;
|
||||
};
|
||||
@ -861,7 +861,7 @@ namespace
|
||||
auto & value_column = columns[VALUE_COLUMN_INDEX];
|
||||
for (ProfileEvents::Event event = 0; event < ProfileEvents::Counters::num_counters; ++event)
|
||||
{
|
||||
UInt64 value = snapshot.counters[event].load(std::memory_order_relaxed);
|
||||
UInt64 value = snapshot.counters[event];
|
||||
|
||||
if (value == 0)
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user